# EndpointError ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **int** | Error code | **message** | **str** | Error message | **error_type** | **str** | Optional machine-readable error category. For model-access failures: \"model_access\" (the model is genuinely unauthorized or unknown) vs \"authorization_unavailable\" (the grant lookup itself failed, e.g. a transient DB error). \"authorization_unavailable\" also accompanies a 503 or 500 whose identity lookup could not verify the caller's API key, as opposed to a 401, which means the key itself was rejected. Omitted for most errors. | [optional] ## Example ```python from h2ogpte.rest_async.models.endpoint_error import EndpointError # TODO update the JSON string below json = "{}" # create an instance of EndpointError from a JSON string endpoint_error_instance = EndpointError.from_json(json) # print the JSON string representation of the object print(EndpointError.to_json()) # convert the object into a dict endpoint_error_dict = endpoint_error_instance.to_dict() # create an instance of EndpointError from a dict endpoint_error_from_dict = EndpointError.from_dict(endpoint_error_dict) ```