adding headers to request errors