This is the standard response for a successful HTTP request. The information returned with the response depends on the method used in the request i.e GET, POST.
sidtechtalks.in
✅ 204 No-Content
The status code where the server successfully processed the request, but is not returning any content.For example, if we use a DELETE request, then it returns only status without returning any data
sidtechtalks.in
✅ 304 Not Modified
This status code is received when the user has performed a conditional GET request and access is allowed, but it can’t be modified. Then only the server should respond to the 304 status code.
sidtechtalks.in
✅ 400 Bad Request
The request that could not understand by the server such as Missing data, invalid parameters, and domain invalidation.A request cannot be fulfilled without the modification of the client’s request.
sidtechtalks.in
✅ 401 Unauthorized
The request requires authentication, the response must have a WWW-Authentication header field.If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials.
sidtechtalks.in
✅ 403 Forbidden
The status code is similar to 401. The request was a legal request, but the server refuses to accept it.It can be happened due to some requirement of permissions to the client’s request or may need an account to access the resource.
sidtechtalks.in
✅ 404 Not Found
The most common code that most the user will see. The server has not found anything matching the Request-URI (or the resource cannot be found on the server).But may be available again in the future.
sidtechtalks.in
✅ 500 Internal Server Error
This is also the most common code seen by the users. It happens when the server cannot fulfill a request due to an unexpected issue.A generic error message is given when no more specific message is suitable.
sidtechtalks.in
✅ 503 Service Unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.This generally happens when something or any deployment is in the process and it will be recovered soon.
sidtechtalks.in
✅ 504 Gateway Timeout
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server specified by the URI.
sidtechtalks.in
This was all about the HTTP status codes.I hope you enjoyed the article and if you found this useful, then please share it with your colleagues.Read more in detailed article.