Trying to handle error responses from the service