Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.29 KB

File metadata and controls

32 lines (23 loc) · 1.29 KB

ErrorResponse

Standard error body returned for every non-2xx response.

Properties

Name Type Description Notes
detail str Human-readable explanation of the error.
code str Stable, machine-readable error code from a closed set. Branch on this instead of parsing 'detail'. 'quota_exceeded'/'too_many_requests' carry a Retry-After header; 'service_unavailable' is retryable.
request_id str Correlates to the x-request-id response header; quote it to support. [optional]

Example

from ksapi.models.error_response import ErrorResponse

# TODO update the JSON string below
json = "{}"
# create an instance of ErrorResponse from a JSON string
error_response_instance = ErrorResponse.from_json(json)
# print the JSON string representation of the object
print(ErrorResponse.to_json())

# convert the object into a dict
error_response_dict = error_response_instance.to_dict()
# create an instance of ErrorResponse from a dict
error_response_from_dict = ErrorResponse.from_dict(error_response_dict)

[Back to Model list] [Back to API list] [Back to README]