Document error handling.

This commit is contained in:
Jacob Hoffman-Andrews
2020-12-18 22:04:00 -08:00
parent b9e3d3e76c
commit e25a6876f9
4 changed files with 31 additions and 0 deletions

View File

@@ -82,6 +82,12 @@
//! # fn main() {}
//! ```
//!
//! ## Error handling
//!
//! ureq returns errors via `Result<T, ureq::Error>`. That includes I/O errors,
//! protocol errors, and status code errors (when the server responded 4xx or
//! 5xx). More details on the [Error] type.
//!
//! ## Features
//!
//! To enable a minimal dependency tree, some features are off by default.