import json


def create_error_response_from_httpexception(http_exception):
    """
    Create error response from an HTTPException error

    Parameters
    ----------
    http_exception : HTTPException
        An HTTPException error

    Returns
    -------
    string
        A JSON string of the HTTPException error response
    """
    http_exception_response = http_exception.get_response()
    error_response = json.dumps({
        'status_code': http_exception_response.status_code,
        'status': http_exception_response.status,
        'description': http_exception.description,
    })
    return error_response