API - wrap request methods to show the error modal on server error
API - wrap request methods to show the error modal on server error

Right now, all the API requests need to handle errors where called.
That should still be true, but we also want to show an error modal on server errors, including the API.

Thus, triggering the error modal when the server response is no 2**.

ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic