# frozen_string_literal: true module Notion module Api module Errors class BadRequest < NotionError; end class Forbidden < NotionError; end class InternalError < NotionError; end class InvalidRequest < NotionError; end class ObjectNotFound < NotionError; end class Unauthorized < NotionError; end ERROR_CLASSES = { 'bad_request' => BadRequest, 'forbidden' => Forbidden, 'internal_error' => InternalError, 'invalid_request' => InvalidRequest, 'object_not_found' => ObjectNotFound, 'unauthorized' => Unauthorized }.freeze end end end