Turn HttpError into an interface