Tradesync
Browse API reference
API reference

Common response codes

Last updated

Failed and error responses include a code that identifies the reason for the result. Codes are case-sensitive lowercase strings. Successful responses do not include a code.

The common responses are described below. For request-specific responses, look at the relevant endpoint in this documentation.

Successful responses

The request was processed successfully. These responses use result rather than a code.

HTTP statusResult Description
200success Successful request
207multi Bulk response containing an individual result for each item

Fail codes

The request failed for reasons described in the JSON body

HTTP statusCode Condition
401unauthorized Authentication failed
403forbidden Insufficient permissions to access this resource
404not_found Resource does not exist
405method_not_allowed Method not allowed
422validation_failed Input validation error, including missing required fields
429too_many_requests Too many requests

Error codes

The request failed due to a system error or maintenance.

HTTP statusCode Condition
500error System error has occurred
503maintenance_mode Maintenance mode enabled