class_docstr: Exception thrown on non 200-level responses from the REST API
class_docstr_tok: ["Exception","thrown","on","non","200-level","responses","from","the","REST","API"]
code: def __init__(self, json):
      error_code = json.get(
          "error_code", ErrorCode.Name(INTERNAL_ERROR)
      )
      message = "{}: {}".format(
          error_code,
          json["message"]
          if "message" in json
          else "Response: " + str(json),
      )
      super().__init__(message, error_code=ErrorCode.Value(error_code))
      self.json = json
  
imports: import json
  from mlflow.protos.databricks_pb2 import ABORTED, ALREADY_EXISTS, BAD_REQUEST, CANCELLED, CUSTOMER_UNAUTHORIZED, DATA_LOSS, DEADLINE_EXCEEDED, ENDPOINT_NOT_FOUND, INTERNAL_ERROR, INVALID_PARAMETER_VALUE, INVALID_STATE, NOT_FOUND, NOT_IMPLEMENTED, PERMISSION_DENIED, REQUEST_LIMIT_EXCEEDED, RESOURCE_ALREADY_EXISTS, RESOURCE_CONFLICT, RESOURCE_DOES_NOT_EXIST, RESOURCE_EXHAUSTED, TEMPORARILY_UNAVAILABLE, UNAUTHENTICATED, ErrorCode
label_desc: Use image node_id 1 to create a new RestException object from inherited base classes: MlflowException with example: obj = RestException(json)