Skip to main content
The FaceSign API uses conventional HTTP response codes to indicate the success or failure of an API request. Understanding these errors and implementing proper error handling is crucial for building a robust integration.

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:
Error handling examples

Common errors and solutions

Authentication errors

Invalid API key
Solution: Check that you’re using the correct API key and that it hasn’t been revoked.

Validation errors

Missing required parameter
Solution: Ensure all required parameters are included in your request. Check the error message for details about which field is invalid.

Rate limit errors

Rate limit exceeded
Solution: Implement exponential backoff and respect the Retry-After header.

Implementing retry logic

For transient errors like network issues and rate limiting, implement exponential backoff:
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, and code from 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