public interface ApiResponse extends OutgoingMessage
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode()
Returns the status code associated with this response
|
java.lang.String |
getStatusText()
Returns the status text associated with this response
|
ApiResponse |
setStatusCode(int code)
Sets the status code for this response.
|
ApiResponse |
setStatusText(java.lang.String text)
Sets the status text for this response.
|
getOrDefaultBody, getOrDefaultHeaders, setBody, setHeader, setHeaders, withoutHeader
getBody, getHeader, getHeaders
ApiResponse setStatusCode(int code)
code
- for the response, e.g. 200 or 500ApiResponse
instanceint getStatusCode()
java.lang.String getStatusText()
ApiResponse setStatusText(java.lang.String text)
text
- for the response statusApiResponse
instance