Here are the status codes we used and when to use them:

  • 200 OK - Successful GET, PUT, PATCH
  • 201 Created - Successful POST
  • 204 No Content - Successful DELETE
  • 400 Bad Request - Invalid data (missing fields, wrong format)
  • 404 Not Found - Resource doesn’t exist
Tags: