2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.), and codes in the 5xx range indicate an error with VTULab’s servers.
HTTP Status Codes
Error Response Structure
When a request fails, we return a JSON object containing the error details.Field Definitions
boolean
Always
false for error responses.string
A high-level summary of the error.
object
An object containing field-specific validation messages. The keys represent the field names, and the values are arrays of error strings.
Handling Errors
Validation Errors (422)
These occur when the data you sent doesn’t meet our requirements. Always check theerrors object for specific details.
