class_docstr: Base class for exceptions raised by an API service.
class_docstr_tok: ["Base","class","for","exceptions","raised","by","an","API","service","."]
code: def __init__(
      self,
      message: str,
      status_code: HTTPStatus,
      code: ApiErrorCode,
      cause: Optional[BaseException] = None,
      disclose_cause: bool = False,
  ):
      super().__init__(
          message=message,
          status_code=status_code,
          code=code,
          cause=cause,
          disclose_cause=disclose_cause,
      )
  
imports: import logging
  from http import HTTPStatus
  from typing import Literal, Optional
  from libcommon.exceptions import CustomError
label_desc: Use image node_id 1 to create a new ApiError object from inherited base classes: CustomError with example: obj = ApiError(message, status_code, code, cause, disclose_cause)