https://dev.to/tabrez/how-to-handle-4xx-and-5xx-errors-in-javascript-fetch-14cf
How to handle 4xx and 5xx errors in Javascript fetch() - DEV Community
Many modern javascript applications make use of the in-built fetch() API. This API takes care of most... Tagged with react, javascript, angular, fetch.
how to handle5xx errors