Overview
The OFAuth API uses standard HTTP status codes with structured JSON error responses to provide clear, actionable feedback when things go wrong.Error Response Format
All API errors return a consistent JSON structure:Error Response Fields
HTTP Status Codes
Success Codes
Client Error Codes
Server Error Codes
Error Types
Thetype field in error responses will be one of the following:
Action Required Hints
Some errors include anactionRequired field suggesting how to resolve the issue:
Rate Limiting
When you hit a rate limit, the response includes:- HTTP Status:
429 Retry-Afterheader: Seconds to wait before retrying
Handling Rate Limits
- Check for
429status code - Read the
Retry-Afterheader (defaults to 60 seconds if missing) - Wait the specified duration before retrying
- Implement exponential backoff for repeated failures
Common Error Scenarios
Session Expired
When a user’s OnlyFans session expires:Connection Not Found
When a connection ID doesn’t exist or has no session data:Service Unavailable
When there’s a temporary issue:Error Handling Best Practices
Check the type field
Branch on the
type field for programmatic handling, not the error messageLog requestId
Include
requestId in logs and support requests for debuggingHandle session errors
Watch for
SESSION_EXPIRED and SESSION_NOT_PROVIDED to trigger re-auth flowsImplement retries
Use exponential backoff for
PROXY_ERROR, NETWORK_ERROR, and rate limitsExample Error Handler
Next Steps
Rate Limiting
Token bucket system and backoff strategies
Access API
Using the Access API
System Webhook Events
Get notified of connection status changes