Skip to main content
Routeway uses standard HTTP response codes to indicate the success or failure of an API request. Error responses contain a detailed JSON body that mirrors the OpenAI error schema, making it easy to parse errors programmatically.

Error Response Schema

All API errors return a standard JSON object containing an error payload:

Fields


HTTP Status Codes


Catching Errors in Code

Since Routeway uses OpenAI-compatible responses, the official OpenAI SDKs will automatically parse and throw structured exceptions.