2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided. Codes in the 5xx range indicate an error with the AI Gateway’s servers (these are rare).
Common Errors
During request processing, you may encounter error codes from either the AI Gateway or the LLM provider:Provider-specific error codes are passed through by the AI Gateway. For debugging these errors, refer to our Error Library.

