Overview
The ReferralLoop API uses standard HTTP status codes to indicate success or failure. This guide explains common error codes and how to handle them.Error Response Format
All error responses follow this format:HTTP Status Codes
400 Bad Request
The request was malformed or contained invalid parameters. Common causes:- Missing required fields
- Invalid data types
- Invalid parameter values
401 Unauthorized
The API key is missing, invalid, or expired. Common causes:- Missing
Authorizationheader - Invalid API key format
- Expired or revoked API key
403 Forbidden
The request is valid, but the action is not allowed. Common causes:- Free plan attempting to use API (API access requires paid plan)
- Insufficient permissions
404 Not Found
The requested resource doesn’t exist. Common causes:- Invalid waitlist ID
- Invalid signup ID
- Resource was deleted
409 Conflict
The request conflicts with the current state of the resource. Common causes:- Email already exists on waitlist
- Duplicate resource creation
429 Too Many Requests
The rate limit has been exceeded. Example:500 Internal Server Error
An unexpected error occurred on the server. What to do:- Retry the request after a short delay
- If the problem persists, contact support
Error Handling Best Practices
- Always check the status code before processing the response
- Read the error message to understand what went wrong
- Implement retry logic for 5xx errors with exponential backoff
- Handle rate limits by checking the
X-RateLimit-Remainingheader - Log errors for debugging and monitoring