← all problem types

method_not_allowed

405 Method Not Allowed   This method is not allowed on this resource.

When you get it

This method is not allowed on this resource. It is always answered with HTTP 405 - one code means one status, so a client may key its handling on either.

Fields it carries

Inside each errors[] entry, beside pointer:

method
The HTTP method the request used.
allowed
The complete set of values this field accepts. Send one of these.

A field is omitted when the server genuinely does not know it - an absent member is never the same as an empty one.

How to fix it

Use one of the methods listed in `allowed` (also in the response's Allow header).

Shape

{
  "type":   "https://api2.host-tracker.com/problems/method-not-allowed",
  "title":  "This method is not allowed on this resource.",
  "status": 405,
  "code":   "method_not_allowed",
  "errors": [
    { "method": …, "allowed": … }
  ]
}