patch send_error to set headers from patched HTTPError