Class MethodNotAllowedException

All Implemented Interfaces:
Serializable

public class MethodNotAllowedException extends AxiomException
A method the target resource does not support (405). The response's Allow header lists the supplied methods in sorted order. The runtime answers unmatched methods on registered routes with the same status and header.
See Also:
  • Constructor Details

    • MethodNotAllowedException

      public MethodNotAllowedException(Set<String> allowed)
      Creates the exception with code method_not_allowed.
      Parameters:
      allowed - supported method tokens; at least one
      Throws:
      IllegalArgumentException - if the set is empty or a method is not an HTTP token of at most 32 characters