adding the response code to the error