private static Document SerializeHttpError(HttpError httpError) => new Document { Errors = httpError.ToErrors() };