pyapacheatlas.core.util.AtlasResponse#
- class pyapacheatlas.core.util.AtlasResponse(response, **kwargs)#
Interface for a response from Atlas. Consists of a:
body: The text or json returned from Atlas.
status_code: The status code returned by the HTTP Response
method: The method used to make the HTTP Request
Takes an option responseNotJson to just read the content.
Raises a ValueError if a non 204 status code’s.
Raises a AtlasException if ‘errorCode’ appears in the response text and a 4xx or 5xx status code is returned.
Raises a requests.RequestException if ‘errorCode’ does not appear in the response text and a 4xx or 5xx status code is returned.
- __init__(response, **kwargs)#
Methods
__init__
(response, **kwargs)