Re: Support for http return code 451?

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

 



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 <michael.renner@xxxxxx> wrote:
Moin,

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux