https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
A server (usually a web application) sends responses to a client (web browser or another web application) after it receives a request. The web application usually receives the request, performs an operation - maybe stores, retrieves, updates or deletes some information in a database - then returns a response. Just like HTTP provides a way to categorize requests, it has a way of categorizing responses. There are many things we might want to communicate in a response from a web application - was the request fulfilled correctly? Was there an error? Did the server not know how to respond to the data provided? Was the resource not found on the server? HTTP gives us a way to communicate this information with HTTP response status codes.
There are many response codes available to use, but we’ll outline a few of the most common ones when creating a web application. These response codes are all numbered and are usually three digits. Similar response codes share the same hundreds digit (eg. 200s, 300s, 400s, 500s). You may recognize some of these codes from browsing the web!