Skip to content

method_not_allowed

The path exists, but not for this method.

HTTP 405 · invalid_request_error · not retryable

The path exists, but not for this method. The Allow header lists the methods that work. HEAD works wherever GET does.

Use one of the methods in Allow.

HTTP 405 · method_not_allowed
{
"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.

SDK Raised as
TypeScript (@deedglass/sdk) InvalidRequestError with code === "method_not_allowed"
Python (deedglass) deedglass.InvalidRequestError with .code == "method_not_allowed"