def _raise_response_exceptions(response):
    try:
        response.raise_for_status()
    except ClientResponseError as err:
        if (err.status == 422):
            raise AugustApiAIOHTTPError('The operation failed because the bridge (connect) is offline.') from err
        if (err.status == 423):
            raise AugustApiAIOHTTPError('The operation failed because the bridge (connect) is in use.') from err
        if (err.status == 408):
            raise AugustApiAIOHTTPError('The operation timed out because the bridge (connect) failed to respond.') from err
        raise err
def _raise_response_exceptions(response):
    try:
        response.raise_for_status()
    except ClientResponseError as err:
        if (err.status == 422):
            raise AugustApiAIOHTTPError('The operation failed because the bridge (connect) is offline.') from err
        if (err.status == 423):
            raise AugustApiAIOHTTPError('The operation failed because the bridge (connect) is in use.') from err
        if (err.status == 408):
            raise AugustApiAIOHTTPError('The operation timed out because the bridge (connect) failed to respond.') from err
        raise err