http-decision-diagram
http-decision-diagram copied to clipboard
Override some HTTP statuses
Some HTTP statuses may leak out information, so it's better to alter them.
While one can do so in override, maybe there should be a more specific way to override statuses just from the perspective of leaking out information.
Example: 410 GONE instead of 404 NOT FOUND "leaks" out that there was indeed a resource at that URI, but not anymore. The latter may be preferred in some cases.
FWIW most overrides would lead to an ambiguous 400 BAD REQUEST or 404 NOT FOUND