
When a client sends its request to a server, the server sends status codes as its responses to those requests. Following are the standard HTTP status codes returned:
200 OK
The request has been succeeded. The information returned depends on the HTTP method used in the request. For example, in a GET request, this status code indicates that the response contains the requested resource.
201 Created
The request has been fulfilled resulting in a new resource being created.
202 Accepted
The request has been accepted for processing, but the processing has not been completed. When the processing occurs, the request may or may not be completed.
204 No Content
The server has successfully received the request but is not returning any response.
400 Bad Request
The server cannot process the request because of a client error.
401 Unauthorized
The response is sent when authentication is required or failed.
403 Forbidden
The request is valid, but the server is refusing to react to the request.
404 Not Found
The requested resource cannot be found but could be available in the future.
500 Internal server Error
The server encountered an unexpected condition which prevented the server from fulfilling the request.