State Status code Description Content
OK 200 OK Indicates the request has succeeded Return response required, if just a confirmation, send a 204
OK 201 Created Indicates the request has succeeded and a new resource has been created The new id should be returned
OK 204 No Content The server has fulfilled the request but there is no response body None
FAIL 400 Bad Request The request could not be understood. The faulty fields may be indicated by the server
FAIL 401 Unauthorized The request requires user authentication None
FAIL 403 Forbidden The client does not have access rights to the content None
FAIL 404 Not Found The server can not find the resource The faulty fields may be indicated by the server
FAIL 500 Internal Server Error The server encountered an unexpected condition. Send feedback
FAIL 503 Service Unavailable The server is not ready to handle the request. Send feedback