method_not_allowed

HTTP 405 — The HTTP method is not allowed here.

Returned as application/problem+json with code method_not_allowed and HTTP status 405.

The endpoint exists but does not support the HTTP method you used.

Common causes

  • e.g. POST to a read-only resource, or DELETE where it is not supported.

How to resolve

Example

1{
2 "type": "https://docs.usglobalmail.com/api/problems/method_not_allowed",
3 "title": "The HTTP method is not allowed here.",
4 "status": 405,
5 "code": "method_not_allowed",
6 "request_id": "req_8f3c2a1b9d",
7 "instance": "/v1/mails"
8}
Retrying without changing the request will not help — fix the request first.