Change HTTP error code to 404
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
To tell them apart from 'true' 500 errorsmaster
parent
5422d4e14c
commit
eca546b890
|
@ -251,7 +251,7 @@ def cgi_error_handler(environ, start_response, app):
|
|||
raise
|
||||
|
||||
except Exception as e:
|
||||
headers = {'status': '500 Oops', 'content-type': 'text/html', 'x-morss-error': repr(e)}
|
||||
headers = {'status': '404 Not Found', 'content-type': 'text/html', 'x-morss-error': repr(e)}
|
||||
start_response(headers['status'], list(headers.items()), sys.exc_info())
|
||||
log('ERROR: %s' % repr(e))
|
||||
return [cgitb.html(sys.exc_info())]
|
||||
|
|
Loading…
Reference in New Issue