Class MovedPermanently

    • Field Detail

      • code

        public static final int code
        HTTP status code for 'Moved Permanently'
        See Also:
        Constant Field Values
    • Constructor Detail

      • MovedPermanently

        public MovedPermanently()
        Create a 'Moved Permanently' HTTP Response.
      • MovedPermanently

        public MovedPermanently​(Throwable t)
        Create a 'Moved Permanently' HTTP Response with an underlying cause.
        Parameters:
        t - underlying cause
      • MovedPermanently

        public MovedPermanently​(String m)
        Create a 'Moved Permanently' HTTP Response with a custom message in the body.
        Parameters:
        m - custom response message
      • MovedPermanently

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