import json


def get_error_msg(exception) -> str:
    """
    Parse the http response body to get relevant error message
    """
    http_response_body = json.loads(exception.body.decode("utf-8"))
    exception_msg = http_response_body["message"]
    return exception_msg