HTTP status codes
FaceSign returns the following HTTP status codes:Error response format
All error responses follow a consistent format:Error response
Error object properties
Error types
Handling errors
Here’s how to properly handle errors when using the FaceSign SDK:- JavaScript
- Python
Error handling examples
Common errors and solutions
Authentication errors
Invalid API key
Validation errors
Missing required parameter
Rate limit errors
Rate limit exceeded
Retry-After header.
Implementing retry logic
For transient errors like network issues and rate limiting, implement exponential backoff:- JavaScript
- Python
Retry with exponential backoff
Best practices
- Handle errors gracefully - Don’t let API errors crash your application
- Log errors for debugging - Save error messages and context for troubleshooting
- Implement retry logic - Use exponential backoff for transient errors
- Respect rate limits - Monitor your usage and implement proper throttling
- Parse error responses - Extract
type,message, andcodefrom error objects - Show user-friendly messages - Don’t expose technical error details to end users
- Handle network failures - Catch both API errors and network issues
Getting help
Need help with persistent errors?
- Check the API status page for any ongoing issues
- Review your request parameters against the API documentation
- Contact support with the request ID from the error response
Next steps
Quick Start
Get started in 5 minutes
SDKs
Official SDK documentation