Admin App - Add generic error message for error codes that are not handled
There are places in Admin App where we catch errors and we show custom messages depending on the error code. For example for error code 500 we show "We hit a problem. Try again." Because we are checking only a few of the error codes there are a lot of different that we don't show a custom message for them and nothing will happen when these codes will occur in the application. The purpose of this ticket is to make a generic message for this unhandled cases.
Check the example in the screenshoots. In that case only for the error 500 we will show a message. And nothing will happen for all the other error codes.
[This comment has been reassigned to email@example.com as part of the Alfresco cloud migration project. The author of this comment was skomeravelli] Tested the following error messages:
when 500 status code is seen , error message "We hit a problem. Try again." is seen
503 error message has been tested by
For all others, error message "Error. Something went wrong." is seen . Tested this by checking out the branch which got these changes