NowgateDocs

method_not_allowed

This path doesn't support the HTTP method used.

On this page

HTTP status: 405 Method Not Allowed. Retrying the same request unchanged fails the same way.

Why it happens

  • For example, a PUT to /v1/payments, which supports only GET and POST.

What to do

Use a method the API reference lists for the path; the detail names the allowed ones.

Example

The response is application/problem+json. Branch on code, never on title or detail. See errors for the format.

{
  "type": "https://docs.nowgate.io/errors/method_not_allowed",
  "title": "Method Not Allowed",
  "status": 405,
  "detail": "What exactly was wrong, in a sentence.",
  "instance": "/v1/payments",
  "code": "method_not_allowed",
  "request_id": "req_01jc3xb1n6f0q2w8e4r7t5y9v3"
}