Handling API Responses
HB
Updated by Hweb Admin
Dec 28, 2025 • 1 min read
Our API follows standard RESTful principles. Every response is returned in JSON format with consistent status codes.
Status Codes
- 200 OK: The request was successful.
- 400 Bad Request: There was an issue with the parameters you sent (e.g., missing email).
- 401 Unauthorized: Your API key is invalid or missing.
- 404 Not Found: The requested resource (e.g., a transaction reference) does not exist.
- 50x Server Error: Something went wrong on our end. Please retry later.
Error Body
When an error occurs, the response body will contain a message field explaining exactly what the problem is, helping you debug faster.