Skip to main content
The SambaNova API uses standard HTTP response status codes to indicate whether an API request was successful or failed. When a request fails, the API responds with a JSON object containing details about the error. The response follows the OpenAI error format with an additional request_id field for tracing.

Error response format

All error responses have the following structure:

Error message example

This error indicates that a parameter value exceeded the allowed maximum. The top_p parameter received a value of 100, whereas it should be between 0 and 1. The error type is invalid_request_error, with the code decimal_above_max_value.
Example error response

Error categories

Use the following table to understand the various error categories.

Error code reference

Use the following table to understand and troubleshoot errors programmatically.