def _response_error(response):
    """Return the decoded response error or status code if no content exists.

    :param requests.response response: The HTTP response
    :rtype: str

    """
    return response.body.decode("utf-8") if hasattr(response, "body") and response.body else str(response.status_code)