add response headers, params, and body to error