Class MethodNotAllowedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.dspace.app.rest.exception.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:
  • Constructor Details

    • MethodNotAllowedException

      public MethodNotAllowedException(String message, Throwable cause)
    • MethodNotAllowedException

      public MethodNotAllowedException(String message)