fix http_error as the common base class for all http errors