Discussions

Ask a Question
Back to All

API error codes

Hi, I'd like to handle errors from the API in a standardized way. I know that the API returns some error codes, such as

{ error_code: '14-1', error_message: 'Order not found' }

Are these error codes consistent across API's? Is it safe to say that 14-1 is the same as 404-NotFound? Is there any documentation surrounding these error messages?

Thanks,

Max