1. Home
  2. Practical sheets
  3. API : The different codes returned
  1. Home
  2. Iterop Design
  3. Services configuration
  4. API : The different codes returned

API : The different codes returned

When you use a method through the API, a code is returned to you. Here are the most common codes.

The “success” codes

Codes

Meaning

200

OK : Query success.
The resource exists and is well reached.

201

Created : The resource is well created.
Its id is indicated by the URL of the request
or is contained in the header Location

204

No Content : The resource is correctly deleted.

Error codes

Codes

Meaning

400

Bad Request: Either the syntax is invalid,
or the operation is about something
of non-existent.

401

Unauthorized : Authentication problem.
Either the authentication is misinformed/incomplete,
or we’re in JWT on the app while base64 is in JWT
requested as an input.

404

Not found: The requested resource is not
found. The path (path/direction) filled in is only
certainly not good.

405

Method Not Allowed: The query is known to the
server but is not supported by the resource
targeted (GET / POST).

409

Conflict : It is possible that the desired element already exists (a user, a group, a list that already has the same name).

500

Internal Server Error : Error coming from the server.
Please contact the administrator.

Updated on 13 November 2020

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support