method_not_allowed
The path exists, but not for this method.
HTTP 405 · invalid_request_error · not retryable
What happened
Section titled “What happened”The path exists, but not for this method. The Allow header lists the
methods that work. HEAD works wherever GET does.
What to do
Section titled “What to do”Use one of the methods in Allow.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "method_not_allowed", "message": "DELETE isn't supported on /v1/health. Use GET or HEAD.", "param": null, "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/method_not_allowed" }}The message is for a person and can get more exact over time: branch on type and code, never on the message.
In the SDKs
Section titled “In the SDKs”| SDK | Raised as |
|---|---|
TypeScript (@deedglass/sdk) |
InvalidRequestError with code === "method_not_allowed" |
Python (deedglass) |
deedglass.InvalidRequestError with .code == "method_not_allowed" |