Class HttpStatusType

java.lang.Object
io.micronaut.problem.HttpStatusType
All Implemented Interfaces:
org.zalando.problem.StatusType

public class HttpStatusType extends Object implements 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 Details

    • HttpStatusType

      public HttpStatusType(io.micronaut.http.HttpStatus httpStatus)
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Specified by:
      getStatusCode in interface org.zalando.problem.StatusType
    • getReasonPhrase

      public String getReasonPhrase()
      Specified by:
      getReasonPhrase in interface org.zalando.problem.StatusType