Package io.micronaut.problem
Class HttpStatusType
java.lang.Object
io.micronaut.problem.HttpStatusType
- All Implemented Interfaces:
org.zalando.problem.StatusType
Implementation of
StatusType
which uses Micronaut HttpStatus
and renders as JSON the HTTP status code.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HttpStatusType
public HttpStatusType(io.micronaut.http.HttpStatus httpStatus)
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCode
in interfaceorg.zalando.problem.StatusType
-
getReasonPhrase
- Specified by:
getReasonPhrase
in interfaceorg.zalando.problem.StatusType
-