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 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 Summary
ConstructorsConstructorDescriptionMethodNotAllowedException(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
-
Constructor Details
-
MethodNotAllowedException
-
MethodNotAllowedException
-