-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
httpd: return 404 status code on an unknown page
Motivation: The httpd service provides a configurable web server, which includes the ability to return a custom response as a default response if no specific rule matches. Unfortunately, this returns a 200 OK response code, despite the 404 NOT FOUND response code being a closer fit. Modification: Allow the configuration to specific which HTTP status should be returned. Update configuration so the default response includes a 404 status code. Result: Requests to httpd that target an unknown resource generate a response that includes the expected 404 HTTP status code. Target: master Request: 3.2 Request: 3.1 Request: 3.0 Request: 2.16 Ticket: http://rt.dcache.org/Ticket/Display.html?id=9298 Require-notes: yes Require-book: no Patch: https://rb.dcache.org/r/10625/ Acked-by: Albert Rossi
- Loading branch information
1 parent
1cd37d0
commit 9a0752d
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters