Add response code info into error-reporting.