Search Posts

Category: error-handling

How to handle HTTP error in the client side?

What is the best way to handle HTTP errors (404, 503, etc.) when submitting a crucial data on the server? Possible solutions I came up with: having the data stored in the session for later submission (data is lost if session expired) have the data downloaded by the user and manually submit it again is it possible to store the data as cookie? Source: AngularJS