docs: def api_exception(http_code):
      """Convenience decorator to associate HTTP status codes with :class:`.ApiError` subclasses.
  
      :param http_code: (int) HTTP status code.
      :return: wrapper function.
      """
      def wrapper(*args):
          code = args[0]
          ErrorMapping.mapping[http_code] = code
          return code
      return wrapper