Skip to main content

HTTP Status Codes Overview

The AutoSend API uses standard HTTP status codes to indicate the success or failure of your requests:

Client Errors (4xx)

400 Bad Request - Invalid Payload

The request was malformed or contains invalid data. This is the most common error code for validation issues. Common Causes:
  • Invalid data format
  • Missing required fields
  • Invalid data types
  • Value constraints violated (e.g., max length exceeded)
  • Malformed JSON
Error Response Format:

401 Unauthorized

The API key is missing, invalid, or expired. Error Response:
Common Causes:
  • Missing Authorization header
  • Invalid API key
  • Expired API key
  • Incorrect API key format

402 Payment Required

Payment is required to complete the request. This typically occurs when there are payment issues or the subscription has expired. Error Response:
Common Causes:
  • Subscription expired
  • Payment method declined
  • Account requires payment
  • Billing issues

403 Forbidden

The API key is valid but doesn’t have permission to perform the requested action. Error Response:

404 Not Found

The requested resource doesn’t exist. Error Response:
Common Causes:
  • Invalid resource ID
  • Resource was deleted
  • Resource belongs to a different project
  • Incorrect endpoint path

429 Too Many Requests

The rate limit has been exceeded. You’ve made too many requests in a given time period. Error Response:

Server Errors (5xx)

500 Internal Server Error

An unexpected error occurred on the server side. Error Response:

Best Practices for Error Handling

1. Always Check Response Status

2. Implement Comprehensive Error Handling

3. Implement Retry Logic

4. Log Errors for Monitoring

5. Provide User-Friendly Error Messages

Need Help?

If you’re experiencing persistent errors or need assistance with error handling, please contact support at . When reporting errors, please include:
  • The endpoint you’re calling
  • The request payload
  • The full error response
  • Steps to reproduce the issue