httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <>
Subject Re: [users@httpd] Support for http return code 451?
Date Tue, 09 Feb 2016 19:14:56 GMT
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.
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 <>

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

View raw message