check for and handle error response