Skip to main content
SuprSend uses standard HTTP response codes to indicate the success or failure of your API requests. This page covers common error codes and how to handle them.

Success Codes

Error Codes

Error Response Format

All error responses follow a consistent format:

Common Error Codes and their solutions

401 Unauthorized - authentication_failed / not_authenticated

Causes:
  • Missing Authorization header, or a scheme other than ServiceToken (not_authenticated)
  • Invalid service token (authentication_failed)
  • Disabled (revoked) service token (authentication_failed)
  • Using environment API key instead of service token
Correct Syntax to authorize Management API:

400 Bad Request - error / invalid

Common Causes:
  • Missing required fields
  • Invalid field formats
  • Invalid enum values
Example:

404 Not Found

Common Causes:
  • Given entity in the request is not found
Example:

409 Conflict - no_changes_to_commit

Common Causes:
  • Calling a commit endpoint when the draft is identical to the live version
Example: