Class SeeOther

  • All Implemented Interfaces:
    Serializable

    public class SeeOther
    extends HttpError
    HTTP Status Code for See Other To send this in the response, either pass an instance (with optional custom message) to Request.send(HttpError) or throw it out of an Irked controller handler. To throw this response out of a functional interface implementation (lambda) that does not declare throwing HttpError, use the HttpError.unchecked() method.
    See Also:
    Serialized Form
    • Constructor Detail

      • SeeOther

        public SeeOther()
        Create a 'See Other' HTTP Response.
      • SeeOther

        public SeeOther​(Throwable t)
        Create a 'See Other' HTTP Response with an underlying cause.
        Parameters:
        t - underlying cause
      • SeeOther

        public SeeOther​(String m)
        Create a 'See Other' HTTP Response with a custom message in the body.
        Parameters:
        m - custom response message
      • SeeOther

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