Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] 404 HTTP status on not found pages - closes #681

Adam Tauber8d4dd3c5153d
diff --git a/searx/webapp.py b/searx/webapp.py
index f76281a5d..262bf9bdf 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -721,7 +721,7 @@ def config():
@app.errorhandler(404)
def page_not_found(e):
- return render('404.html')
+ return render('404.html'), 404
def run():