public class HttpStatusException extends HttpException
| Constructor and Description | 
|---|
HttpStatusException(HttpStatus status,
                   Object body)  | 
HttpStatusException(HttpStatus status,
                   String message)  | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<Object> | 
getBody()  | 
HttpStatus | 
getStatus()  | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpStatusException(HttpStatus status, String message)
status - The HttpStatusmessage - The messagepublic HttpStatusException(HttpStatus status, Object body)
status - The HttpStatusbody - The arbitrary object to returnpublic HttpStatus getStatus()
HttpStatus