diff --git a/src/problem.rs b/src/problem.rs index ff8b2c4..afd6d50 100644 --- a/src/problem.rs +++ b/src/problem.rs @@ -50,6 +50,10 @@ impl Problem { Self::for_status(405, "Method not allowed") } + pub fn failed_dependency() -> Problem { + Self::for_status(424, "Failed dependency") + } + pub fn with_details(mut self, details: T) -> Problem { self.details = match self.details { Some(existing) => Some(format!("{}: {}", existing, details)),