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. These include:
  • Error code
    • Identifies the type of error.
  • Parameter (if applicable)
    • Specifies the property causing the error.
  • Error message
    • Provides a clear explanation of the issue.

Error message

This error message 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 message

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.