def error_message(response):
    """
    Strip out the error message from a HTTP Error response.
    """
    error_body = response.text.strip()
    start = error_body.index("<p>") + 3
    end = len(error_body) - 4
    return error_body[start:end]