Change generic not found status to 50 PERMENANT FAILURE

This commit is contained in:
Michael Lazar 2019-09-22 20:50:28 -04:00
parent 378d58a502
commit 574a99f79d
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,10 @@
### Unreleased ### Unreleased
- - The server now returns a ``50 PERMENANT FAILURE`` response when a client
requests a URL that does not exist on the server. This change is motivated by
mailing list discussions that a ``51 NOT FOUND`` status may not be
appropriate if the scheme/host component of the URL does not match the server.
- Added ``-V`` / ``--version`` argument to display the version and exit. - Added ``-V`` / ``--version`` argument to display the version and exit.
- Force URLs to always end in trailing slashes when serving a directory. This - Force URLs to always end in trailing slashes when serving a directory. This
reduces duplicate selectors and makes resolving relative links more reliable. reduces duplicate selectors and makes resolving relative links more reliable.

View File

@ -160,7 +160,7 @@ class JetforceApplication:
yield from response.body yield from response.body
break break
else: else:
send_status(Status.NOT_FOUND, "Not Found") send_status(Status.PERMANENT_FAILURE, "URL not found on server")
def route( def route(
self, self,