News for hackers. Stuff that matters.
Re:HTTP Status Code for Legally-restricted Resources by delinka on Tuesday June 12, 2012 @10:11AM (#4100491)
If you're trying to "hide" something on the web, there's 401 Unauthorized and 404 Not found. If you cannot acknowledge the existence of a resource, either of these status codes would be fine. If, however, you feel the need to correctly communicate that a resource is legally unavailable (whether or not it exists), then 451 is an alternative.

But, no one ever said status codes had to tell the truth.

There are no comments on this comment yet.