Skip to main content

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

Solution: Check that you’re including the X-API-Key header with a valid API key.
Solution: Create an API key with the required permissions for this endpoint.

Validation Errors

Solution: Check the details field for specific validation issues and correct your request.

Business Logic Errors

Solution: This indicates a business rule violation. Check the specific error code and adjust your request accordingly.

Error Handling Best Practices

Don’t assume requests succeed. Always check the HTTP status code before processing the response:
Log the full error response for debugging:
Don’t show raw API errors to users. Map error codes to friendly messages:

Error Code Reference