def decode_response(status: int, headers: MutableMapping, body: bytes) -> dict:
data = decode_body(headers, body)<EOL>raise_for_status(status, headers, data)<EOL>raise_for_api_error(headers, data)<EOL>return data<EOL>
Decode incoming response

Args:
    status: Response status
    headers: Response headers
    body: Response body

Returns:
    Response data