Package org.dspace.app.rest.exception
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 RuntimeExceptionMethod 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 Summary
Constructors Constructor Description MethodNotAllowedException(String message)MethodNotAllowedException(String message, Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-