Class HttpStatusException

All Implemented Interfaces:
Serializable

public class HttpStatusException extends HttpException
Exception thrown to return an specific HttpStatus and an error message.
Since:
1.0
Author:
Iván López
See Also:
  • Constructor Details

    • HttpStatusException

      public HttpStatusException(HttpStatus status, String message)
      Parameters:
      status - The HttpStatus
      message - The message
    • HttpStatusException

      public HttpStatusException(HttpStatus status, Object body)
      Parameters:
      status - The HttpStatus
      body - The arbitrary object to return
  • Method Details