diff --git a/src/healthcheck.rs b/src/healthcheck.rs index ab1d135..638f378 100644 --- a/src/healthcheck.rs +++ b/src/healthcheck.rs @@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize}; /// A type implementing [HealthCheck] may be returned from a healthcheck endpoint itself (via its /// [Serialize] implementation) as well as incorporated automatically into the global healthcheck /// endpoint for an app. The global healthcheck will fail if any of the module healthchecks return -/// an implementation `h` of [HealthCheck] where `h.status() != StatusCode::Ok`. +/// an implementation `h` of [HealthCheck] where `h.status() != StatusCode::OK`. /// /// We provide a standard implementation [HealthStatus] which has variants for common states an /// application might encounter. We recommend using this implementation as a standard, although it @@ -21,7 +21,7 @@ use serde::{Deserialize, Serialize}; pub trait HealthCheck: Serialize { /// The status of this health check. /// - /// Should return [StatusCode::Ok] if the status is considered healthy, and some other status + /// Should return [StatusCode::OK] if the status is considered healthy, and some other status /// code if it is not. fn status(&self) -> StatusCode; } diff --git a/src/listener.rs b/src/listener.rs index d7bcd75..da63e6b 100644 --- a/src/listener.rs +++ b/src/listener.rs @@ -28,7 +28,7 @@ use tide::{ /// TCP listener which accepts only a limited number of connections at a time. /// -/// This listener is based on [`tide::listener::TcpListener`] and should match the semantics of that +/// This listener is based on `tide::listener::TcpListener` and should match the semantics of that /// listener in every way, accept that when there are more simultaneous outstanding requests than /// the configured limit, excess requests will fail immediately with error code 429 (Too Many /// Requests). diff --git a/src/request.rs b/src/request.rs index 10965c5..8678160 100644 --- a/src/request.rs +++ b/src/request.rs @@ -229,7 +229,7 @@ impl RequestParams { /// /// impl From for ApiError { /// fn from(err: RequestError) -> Self { - /// Self::catch_all(StatusCode::BadRequest, err.to_string()) + /// Self::catch_all(StatusCode::BAD_REQUEST, err.to_string()) /// } /// } ///