-
-
Notifications
You must be signed in to change notification settings - Fork 0
http response status code
HTTP status codes are a bunch of standardized codes which have various explanations in various scenarios. The server should always return the right status code.
@TODO
Standard HTTP response representing success for GET, PUT or POST.
Returned whenever a new instance is created. on creating a new instance, using POST method, should always return 201 status code E.g .
Request is successfully processed, but has not returned any content.
The client has the response already in its cache. And hence there is no need to transfer the same data again.
The request by the client was not processed, because the server could not understand what the client is asking for.
The client is not allowed to access resources, and should re-request with the required credentials.
The request is valid and the client is authenticated, but the client is not allowed access the page or resource for some reason.
The requested resource is not available now.
The requested resource is no longer available. it has been intentionally moved.
The request is valid, but the server is totally confused and the server is asked to serve some unexpected condition.
The server is down or unavailable to receive and process the request. Mostly if the server is undergoing maintenance.