Identifying the error source
- Errors exclusively originating from the AI Gateway are prefixed with “AI Gateway Error”.
- While errors originating from your LLM providers (or frameworks) are returned as they are, without any transformations.
How to verify if it’s the AI Gateway error
You can quickly verify if the problem is originating from the AI Gateway by running the same request without the AI Gateway. If it executes successfully, then it’s likely that the error is with the AI Gateway or its integration.
Common AI Gateway Errors
- Errors related to Missing Mandatory Headers: This is a common error where certain mandatory headers might be missing from the request. Make sure that all the necessary headers as specified in the respective feature documentation are included in your requests.
- Errors related to Invalid Header Values: At times, an incorrect or unsupported value might be passed in a header, causing this error. Cross-check the values provided against the allowed ones mentioned in our documentation.
Last modified on September 15, 2026