method_not_allowed
Method not allowed. This endpoint does not accept this HTTP method.
| HTTP status | 405 |
| Type | invalid_request_error |
| Code | method_not_allowed |
| Can retrying help? | No. The same request gets the same answer until you change it or fix the cause. |
| Charged? | No. This refusal is free. |
What to do
Section titled “What to do”Check the method against the API reference; the Allow header lists the accepted ones.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "method_not_allowed", "message": "This endpoint does not accept this HTTP method.", "param": null, "doc_url": "https://docs.halationlab.ai/errors/method-not-allowed/", "request_id": "req_01JD3Y5RJ6M3XW6J8K2N4P7Q9T" }}See Errors for the error shape and how to handle errors in general, and Billing outcomes for what every outcome costs.