method_not_allowed
HTTP 405 · The path exists, but not with this HTTP method.
Endpoints: Any known path
When it happens
Section titled “When it happens”| When | Message (as returned) | Fix (as returned) |
|---|---|---|
A known path is called with another method, including HEAD and OPTIONS. Checked before the API key. |
{METHOD} is not allowed here. |
Use one of: {methods}. (for example: Use one of: POST, GET.) |
Headers
Section titled “Headers”Allowlists the methods of the path.Cache-Control: no-storeandContent-Type: application/problem+json, as on every problem response.
What to do
Section titled “What to do”- Use a method from the
Allowheader. The API sends no CORS headers, so browser JavaScript on another origin cannot call it.
Example
Section titled “Example”{ "type": "https://docs.replyz.io/errors/method_not_allowed", "code": "method_not_allowed", "status": 405, "message": "PUT is not allowed here.", "fix": "Use one of: POST, GET.", "docs": "https://docs.replyz.io/errors/method_not_allowed.md"}All codes: Errors.