Passed forward the error response in a ajax call failure

The error response from server was not passed forward to repositories. Having access to failure response will allow code to extract error messages and http status codes returned from server.