Skip to content

HTTP status codes are 3-digit numeric codes used to indicate the status of HTTP responses from web servers. Below are some common HTTP status codes and their meanings:

Status CodeCode Explanation
400 Bad RequestThe request format is incorrect or cannot be understood by the server. Usually indicates a client error.
401 UnauthorizedAPI key authentication failed. You need to verify that your API key is correct. Other reasons include token expiration.
403 ForbiddenGenerally indicates insufficient permissions.
404 Not FoundThe requested resource was not found. You may be trying to access an endpoint that does not exist.
413 Request Entity Too LargeThe request body is too large. You may need to reduce the size of your request body.
429 Too Many RequestsYou have exceeded your rate limit due to frequent requests exceeding the limit.
500 Internal Server ErrorAn error occurred on the server. This may be an issue with the OpenAI server, not your problem.
503 Service UnavailableThe server is temporarily unavailable. This may be due to OpenAI performing maintenance or the server being overloaded.

Note: The above is only part of the HTTP status codes and is not complete. Some status codes may vary depending on the server implementation and usage.