You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Renner <mi...@gmx.de> on 2016/02/09 13:29:21 UTC

[users@httpd] Support for http return code 451?

Moin,

are there plans to support the new return code 451 (Unavailable For 
Legal Reasons)?

Thanks
-- 
|Michael Renner      E-mail: michael.renner@gmx.de  |
|81541 Munich        Twitter: @dd0ul                |
|Germany             Don't drink as root!      ESC:wq

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Support for http return code 451?

Posted by Yehuda Katz <ye...@ymkatz.net>.
What do you mean by "support"?

If you have an application you can already send that header and an error
message explaining it.  The RFC says:

> Responses using this status code SHOULD include an explanation, in the
> response body, of the details of the legal demand: the party making it, the
> applicable legislation or regulation, and what classes of person and
> resource it applies to.

which is likely handled in application code too if you are generating the
header there.

I submitted a patch for support for mod_rewrite and other internals to use
that error.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58985
That would let you set the error with something like mod_rewrite
(RewriteRule .* - [R=451]), but you wouldn't get a custom error message
like the RFC suggests.

- Y

On Tue, Feb 9, 2016 at 7:29 AM, Michael Renner <mi...@gmx.de>
wrote:

> Moin,
>
> are there plans to support the new return code 451 (Unavailable For Legal
> Reasons)?
>
> Thanks
> --
> |Michael Renner      E-mail: michael.renner@gmx.de  |
> |81541 Munich        Twitter: @dd0ul                |
> |Germany             Don't drink as root!      ESC:wq
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

[users@httpd] Re: Support for http return code 451?

Posted by Jonesy <SP...@jonz.net>.
On Tue, 09 Feb 2016 13:29:21 +0100, Michael Renner wrote:
>
> are there plans to support the new return code 451 (Unavailable For 
> Legal Reasons)?

Me?  Here?  No, I have no plans to support the new return code 451.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org