Class BadRequest

    • Field Detail

    • Constructor Detail

      • BadRequest

        public BadRequest()
        Create a 'Bad Request' HTTP Response.
      • BadRequest

        public BadRequest​(Throwable t)
        Create a 'Bad Request' HTTP Response with an underlying cause.
        Parameters:
        t - underlying cause
      • BadRequest

        public BadRequest​(String m)
        Create a 'Bad Request' HTTP Response with a custom message in the body.
        Parameters:
        m - custom response message
      • BadRequest

        public BadRequest​(String m,
                          Throwable t)
        Create a 'Bad Request' HTTP Response with a custom message in the body and an underlying cause.
        Parameters:
        m - custom response message
        t - underlying cause