From 69cb834802a853a4b461b8bde288a5b54cd43ca2 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Tue, 7 Feb 2023 11:34:02 -0500 Subject: [PATCH] Fix Plug.Conn.Status.reason_phrase/1 error message (#1131) The message referenced the atom `:unavailable_for_legal_reasons`, but should read `:not_an_rfc_status_code`. --- lib/plug/conn/status.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plug/conn/status.ex b/lib/plug/conn/status.ex index 1fa87e15..d55ced02 100644 --- a/lib/plug/conn/status.ex +++ b/lib/plug/conn/status.ex @@ -166,7 +166,7 @@ defmodule Plug.Conn.Status do MIX_ENV=dev mix deps.clean plug --build Doing this will allow the use of the integer status code 998 as - well as the atom :unavailable_for_legal_reasons in many Plug functions. + well as the atom :not_an_rfc_status_code in many Plug functions. For example: put_status(conn, :not_an_rfc_status_code)