HttpError optimization