Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenAI API

OpenAI API errors and fixes

23 OpenAI API errors from the official error docs, grouped by HTTP status, each with what it means, why it happens, the documented fix and whether to retry. Verified .

Error response body

The shape OpenAI API errors come back in, as the official docs show it. Read the status and error type from here before matching an entry below.

JSON body with an error object. The docs identify errors by error.type (for example invalid_request_error, rate_limit_error, service_unavailable_error, insufficient_quota), error.code (for example slow_down, server_is_overloaded, credit_balance_exhausted), error.param (for example service_tier) and a human-readable message. For billing errors the docs say to inspect error.code, because error.type can still be insufficient_quota. No verbatim JSON body is shown on the error codes page.

HTTP 400 Bad Request

HTTP 401 Unauthorized

HTTP 403 Forbidden

HTTP 404 Not Found

HTTP 409 Conflict

HTTP 422 Unprocessable Content

HTTP 429 Too Many Requests

HTTP 500 Internal Server Error

HTTP 503 Service Unavailable

No HTTP status

Newsletter

Know when the APIs change

One email per week. New model releases, API changes, what broke, and how developers are working around it.