HTTP status codes
Status Code | Explanation |
---|---|
400 Bad Request | The request is malformed or cannot be understood by the server. This usually indicates a client-side error. |
401 Unauthorized | API key verification failed. You may need to verify the correctness of your API key. Other reasons could include token expiration. |
403 Forbidden | Typically indicates insufficient permissions. |
404 Not Found | The requested resource could not be found. You may be trying to access a non-existent endpoint. |
413 Request Entity Too Large | The request body is too large. You may need to reduce the size of your request payload. |
429 Too Many Requests | You have exceeded your rate limit due to too many requests within a short period. |
500 Internal Server Error | An internal server error occurred. This is likely an issue with OpenAI's server and not your fault. |
503 Service Unavailable | The server is temporarily unavailable. This could be due to OpenAI performing maintenance or the server being overloaded. |
Note: The above is only a subset of HTTP status codes and does not cover all possible codes. Some status codes may vary depending on the server's implementation and usage.