astroquery/utils/tap/taputils.py
def parse_http_votable_response_error(responseStr, status):
    """Extracts an HTTP error message from an VO response.

    Parameters
    ----------
    responseStr : HTTP VO response, mandatory
        HTTP VO response

    Returns
    -------
    A string with the response error message.
    """
    pos1 = responseStr.find(TAP_UTILS_HTTP_VOTABLE_ERROR)
    if pos1 == -1:
        return f"Error {status}:\n{responseStr}"
    pos2 = responseStr.find(TAP_UTILS_VOTABLE_INFO, pos1)
    if pos2 == -1:
        return f"Error {status}:\n{responseStr}"
    msg = responseStr[(pos1 + len(TAP_UTILS_HTTP_VOTABLE_ERROR)):pos2]
    return f"Error {status}: {msg}"
Extracts an HTTP error message from an VO response.

    Parameters
    ----------
    responseStr : HTTP VO response, mandatory
        HTTP VO response

    Returns
    -------
    A string with the response error message.
    
Extracts an HTTP error message from an VO response.
Parameters

responseStr : HTTP VO response, mandatory
HTTP VO response

Returns

A string with the response error message.
Extracts an HTTP error message from an VO response . Parameters responseStr : HTTP VO response mandatory HTTP VO response Returns A string with the response error message .
def parse_http_votable_response_error(responseStr, status):
    pos1 = responseStr.find(TAP_UTILS_HTTP_VOTABLE_ERROR)
    if pos1 == -1:
        return f"Error {status}:\n{responseStr}"
    pos2 = responseStr.find(TAP_UTILS_VOTABLE_INFO, pos1)
    if pos2 == -1:
        return f"Error {status}:\n{responseStr}"
    msg = responseStr[(pos1 + len(TAP_UTILS_HTTP_VOTABLE_ERROR)):pos2]
    return f"Error {status}: {msg}"
def parse_http_votable_response_error ( responseStr , status ) : pos1 = responseStr . find ( TAP_UTILS_HTTP_VOTABLE_ERROR ) if pos1 == - 1 : return f"Error {status}:\n{responseStr}" pos2 = responseStr . find ( TAP_UTILS_VOTABLE_INFO , pos1 ) if pos2 == - 1 : return f"Error {status}:\n{responseStr}" msg = responseStr [ ( pos1 + len ( TAP_UTILS_HTTP_VOTABLE_ERROR ) ) : pos2 ] return f"Error {status}: {msg}"
Extracts an HTTP error message from an VO response.
Extracts an HTTP error message from an VO response .
"""Extracts an HTTP error message from an VO response.

    Parameters
    ----------
    responseStr : HTTP VO response, mandatory
        HTTP VO response

    Returns
    -------
    A string with the response error message.
    """
responseStr
status