Published on October 30th, 2019
These are some of the most common HTTP codes that everyone working or building servers should know. Here is high level meaning of codes. I’ll go more in depth later.
The most common HTTP code, indicates success of request. Response may vary based on request method used.
Means that request to create resource has been fulfilled.
This and all future request should be redirected to given URL.
When received as response from POST (or similar) request, client presumes that request was successful and redirects to given URL (using GET method).
This request should be redirected to given URL but future requests should still use original URL.
Request can’t be processed because of invalid request syntax, size, …
Request is valid but server refuses action due to lack of necessary permissions for resource or invalid credentials. The request should not be repeated.
The requested resource could not be found.
Used for rate limiting. User has sent too many requests in a given amount of time.
Generic error message that indicates error in request processing on server side.
Server cannot handle request due to overload or maintenance. Usually temporary.
There are much more status codes available, especially 4xx for all kinds of specific needs. I encourage you to learn more on Wikipedia.