500–599 range
Status codes in this range usually represent errors pertaining to the server itself. Although these errors are usually not your fault, you will still need to be aware of them and adapt to the situation.
The status codes 502 Bad Gateway and 503 Service Temporarily Unavailable indicate that the server was unable to produce the resource due to a problem within the server. This does not necessarily mean that the resource does not exist, or that you are not allowed to access it. When you encounter these codes, it is best to put the request aside and try again later. If you are seeing these codes often, you may want to stop all requests and allow the server to address its issues.
There are cases where something in the web server breaks ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access