Errors
The Capital Check In API uses conventional HTTP response codes to indicate the success or failure of an API request.HTTP Status Codes
| Code | Description |
|---|---|
| 200 | OK - Request successful |
| 201 | Created - Resource created successfully |
| 400 | Bad Request - Invalid request syntax |
| 401 | Unauthorized - Authentication required |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource not found |
| 422 | Unprocessable Entity - Validation error |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Server error |
Error Response Format
All error responses follow a consistent format:Common Error Codes
Authentication Errors
Validation Errors
Resource Errors
Error Handling Best Practices
- Always check the HTTP status code first
- Parse the error response for detailed information
- Implement proper error logging
- Handle rate limiting with exponential backoff
- Provide user-friendly error messages
- Retry transient errors (5xx status codes)