libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Change reason phrase


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Change reason phrase
Date: Mon, 5 Dec 2022 15:26:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0

Only by changing the source code and recompiling MHD. But you should not do this, this is a very bad idea. You should stick to the standard messages of the HTTP protocol. If you need to convey additional information, do it in the body or in a header; try to use HTTP status codes narrowly to what the HTTP standard says they are for.

On 12/5/22 10:26, Tiaan via libmicrohttpd wrote:
Hi, is it possible to change the reason phrase of responses e.g. instead of
HTTP/1.1 401 Unauthorized rather HTTP/1.1 401 Account frozen?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]