REST API errors list

Hi!

Is there any documentation containig a list of possible errors returning as an answer on a REST API queries? We are develope an integration and would like to add an errors processing in our code and we need the list of at least the main errors for this. Is this possivle to get this information?

Thank you!

BR, Aleks

Parents
  • The REST API will return a few different HTTP status codes depending upon exactly what you request:

    • 200 (everything is okay)
    • 400 (you made a bad request)
    • 404 (specifically: you asked for something that wasn't there, or that you don't have access to)
    • 403 / 401 (specifically: your authentication was invalid/expired/etc.)
    • 500 (something went wrong inside the REST API, or the request you made caused the server to be unable to respond)

    I should maybe be clear about 500...  If, for example, you pass a set of queries for a search, but the values themselves are invalid, it could be that the server attempts to run a search but fails.  In this particular case you made a bad request, but the server may return a 500 because it couldn't trap that the combination of parameters was invalid before the server failed to run the search.

    We don't publish anything more than this, I think.

Reply
  • The REST API will return a few different HTTP status codes depending upon exactly what you request:

    • 200 (everything is okay)
    • 400 (you made a bad request)
    • 404 (specifically: you asked for something that wasn't there, or that you don't have access to)
    • 403 / 401 (specifically: your authentication was invalid/expired/etc.)
    • 500 (something went wrong inside the REST API, or the request you made caused the server to be unable to respond)

    I should maybe be clear about 500...  If, for example, you pass a set of queries for a search, but the values themselves are invalid, it could be that the server attempts to run a search but fails.  In this particular case you made a bad request, but the server may return a 500 because it couldn't trap that the combination of parameters was invalid before the server failed to run the search.

    We don't publish anything more than this, I think.

Children
No Data