Error Response Format
All API errors follow a consistent JSON format:HTTP Status Codes
The Wallbit API uses standard HTTP status codes to indicate the success or failure of requests.Success Codes
Client Error Codes
Server Error Codes
Common Errors
Authentication Errors
403 Forbidden
403 Forbidden
Validation Errors
400 Bad Request
400 Bad Request
details field for specific validation issues and correct your request.Business Logic Errors
422 Unprocessable Entity
422 Unprocessable Entity
Error Handling Best Practices
Always Check Status Codes
Always Check Status Codes
Don’t assume requests succeed. Always check the HTTP status code before processing the response:
Log Error Details
Log Error Details
Log the full error response for debugging:
User-Friendly Messages
User-Friendly Messages
Don’t show raw API errors to users. Map error codes to friendly messages:

