Some important codes to know an use:

  • 200 (ok)
  • 201 created - used when successfully submitting a POST or PUT to the server, indicating something was created on the server
  • 400 (bad request) - client error, leading to an malformed request to the server. E. g. a bad form request
  • 401 Unauthorized - actually, unauthenticatiac