From 23b85b12462b939c3b0bdb038ae2a630b3045395 Mon Sep 17 00:00:00 2001 From: Brandon Maul Date: Thu, 21 Mar 2024 11:06:31 -0400 Subject: [PATCH] Update HTTPResponse.swift - added HTTP Response 418 --- Sources/HTTPTypes/HTTPResponse.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/HTTPTypes/HTTPResponse.swift b/Sources/HTTPTypes/HTTPResponse.swift index 863bdae..425265a 100644 --- a/Sources/HTTPTypes/HTTPResponse.swift +++ b/Sources/HTTPTypes/HTTPResponse.swift @@ -460,6 +460,11 @@ extension HTTPResponse.Status { /// https://www.rfc-editor.org/rfc/rfc9110.html public static var expectationFailed: Self { .init(uncheckedCode: 417, reasonPhrase: "Expectation Failed") } + /// 418 I'm a teapot + /// + /// https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.19 + public static var imATeapot: Self { .init(uncheckedCode: 418, reasonPhrase: "I'm a teapot") } + /// 421 Misdirected Request /// /// https://www.rfc-editor.org/rfc/rfc9110.html