add http header to error logging