Class HttpError


  • public final class HttpError
    extends 
    An event handler method may return an instance of this class to send an error response to the client.
    Since:
    5.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpError​(int statusCode,  message)  
    • Constructor Detail

      • HttpError

        public HttpError​(int statusCode,
                          message)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the error status code.
      • getMessage

        public  getMessage()
        Returns error message.