In the case of an error, a standard format error response body will be returned and the HTTP status code will be set to an error status.

interface GeolocateResponseError {
    data: {
        error: {
            code: number;
            errors: { domain: string; message: string; reason: GeolocateErrorReason }[];
            message: string;
        };
    };
}

Hierarchy

  • AxiosResponse
    • GeolocateResponseError

Properties

Properties

data: {
    error: {
        code: number;
        errors: { domain: string; message: string; reason: GeolocateErrorReason }[];
        message: string;
    };
}