public abstract class AbstractClientHttpResponse extends Object implements ClientHttpResponse
ClientHttpResponse
.Constructor and Description |
---|
AbstractClientHttpResponse() |
Modifier and Type | Method and Description |
---|---|
HttpStatus |
getStatusCode()
Get the HTTP status code as an
HttpStatus enum value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getRawStatusCode, getStatusText
getBody
getHeaders
public HttpStatus getStatusCode() throws IOException
ClientHttpResponse
HttpStatus
enum value.
For status codes not supported by HttpStatus
, use
ClientHttpResponse.getRawStatusCode()
instead.
getStatusCode
in interface ClientHttpResponse
null
)IOException
- in case of I/O errorsHttpStatus.valueOf(int)