Error Handling

SMARTe Discover APIs return deterministic and structured errors. Errors are evaluated early in the request lifecycle and are returned consistently across all endpoints.

Error responses are machine-readable and predictable, allowing clients to implement reliable error-handling logic.

Error Response Format

All errors follow a consistent JSON structure:

{
  "error": {
    "code": "invalid_parameter",
    "message": "Invalid input parameter.",
    "status": 400
  }
}

Each error response includes:

  • A machine-readable error code
  • A human-readable message
  • An HTTP status code

Error responses also include a smarteTransactionId in response headers for traceability.

HTTP Status Codes

Status CodeDescription
200Request successful, data returned
204Request successful, no data found
400Invalid request or input parameters
401Authentication failure
404Resource or endpoint not found
409Request conflict or invalid state
429Rate limit exceeded
500Internal server error

Common Error Categories

Authentication Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
401AUTH_INVALIDAuthentication credentials are missing or invalid.Missing or invalid API keyProvide valid credentials

Validation Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
400invalid_parameterInvalid input parameter.Invalid filters or malformed inputValidate request parameters

Rate Limiting Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
429rate_limit_exceededToo many requests. Please try again after some time.Request exceeds allowed thresholdRetry with backoff

Server Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
500internal_errorAn unexpected error occurred while processing the request.Server-side failureRetry with backoff

Debugging and Support

When troubleshooting issues:

  • Review the error code and message carefully
  • Verify request payload and filters
  • Check authentication credentials
  • Use the smarteTransactionId for tracing

When contacting SMARTe Support, include:

  1. smarteTransactionId
  2. Timestamp
  3. Endpoint
  4. Error details


What’s Next

Did this page help you?