J
J
Jedi2018-11-03 16:59:38
Node.js
Jedi, 2018-11-03 16:59:38

What response codes should I use?

Good evening.
Please tell me which codes should I use for the following messages:

  1. Authorization error
  2. Authorization was successful
  3. Invalid data for authorization
  4. Created
  5. Not created
  6. Changed
  7. Not changed
  8. Removed
  9. Not removed
  10. Errors in the incoming data or something is missing in the POST Request

You may have noticed that these messages are all for CRUD methods.
Example codes:
200, 201, 403, 500, 404.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question