Skip to main content

GoogleApiError

Type Alias GoogleApiError 

Source
pub type GoogleApiError = IndexNowError;
👎Deprecated since 1.1.0:

renamed to IndexNowError

Expand description

Former name of IndexNowError, kept so 1.0 code keeps compiling.

Aliased Type§

pub enum GoogleApiError {
    Connection(String),
    Status {
        code: u16,
        body: String,
    },
}

Variants§

§

Connection(String)

The request could not be sent (DNS, TLS, timeout, …) or the response body could not be read. Holds the transport error message.

§

Status

The search engine answered with a status other than 200 or 202.

Fields

§code: u16

HTTP status code, e.g. 400, 403, 422, 429.

§body: String

Response body as returned by the endpoint.