Class MethodNotAllowedException

  • All Implemented Interfaces:
    Serializable

    @ResponseStatus(value=METHOD_NOT_ALLOWED,
                    reason="Method not allowed")
    public class MethodNotAllowedException
    extends RuntimeException
    Method Not Allowed: The 405 status code indicates that the method received in the request-line is known by the origin server but not supported by the target resource. The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.
    Author:
    Maria Verdonck
    See Also:
    Serialized Form
    • Constructor Detail

      • MethodNotAllowedException

        public MethodNotAllowedException​(String message,
                                         Throwable cause)
      • MethodNotAllowedException

        public MethodNotAllowedException​(String message)