code: def http(self, code: int = 400, **kwargs) -> HTTPException:
      return HTTPException(
          code,
          {
              "error": self.__class__.__name__,
              "message": str(self),
              **kwargs,
          },
      )
  
file_path: dstack/gateway/src/dstack/gateway/errors.py
imports: from fastapi import HTTPException
label_desc: Use image node_id 1 for calling the GatewayError obj's underlying member method code with example usage: obj.http(code) and returns: HTTPException