Enum ureq::Error[][src]

pub enum Error {
    BadUrl(String),
    UnknownScheme(String),
    DnsFailed(String),
    ConnectionFailed(String),
    TooManyRedirects,
    BadStatus,
    BadHeader,
    Io(IoError),
    Tls(TlsError),
    TlsHandshake(HandshakeError<TcpStream>),
}

Errors that are translated to "synthetic" responses.

Variants

The url could not be understood. Synthetic error 400.

The url scheme could not be understood. Synthetic error 400.

DNS lookup failed. Synthetic error 400.

Connection to server failed. Synthetic error 500.

Too many redirects. Synthetic error 500.

A status line we don't understand HTTP/1.1 200 OK. Synthetic error 500.

A header line that couldn't be parsed. Synthetic error 500.

Some unspecified std::io::Error. Synthetic error 500.

Some unspecified TLS error. Synthetic error 400.

Some unspecified TLS handshake error. Synthetic error 500.

Methods

impl Error
[src]

For synthetic responses, this is the error code.

For synthetic responses, this is the status text.

For synthetic responses, this is the body text.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<IoError> for Error
[src]

Performs the conversion.

impl From<TlsError> for Error
[src]

Performs the conversion.

impl From<HandshakeError<TcpStream>> for Error
[src]

Performs the conversion.

impl Into<Response> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error