summaryrefslogtreecommitdiff
path: root/rc/bin/rc-httpd/handlers/error
diff options
context:
space:
mode:
Diffstat (limited to 'rc/bin/rc-httpd/handlers/error')
-rwxr-xr-xrc/bin/rc-httpd/handlers/error5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc/bin/rc-httpd/handlers/error b/rc/bin/rc-httpd/handlers/error
index e38d41f01..282d8706c 100755
--- a/rc/bin/rc-httpd/handlers/error
+++ b/rc/bin/rc-httpd/handlers/error
@@ -19,6 +19,11 @@ fn do_error{
'
}
+fn 401{
+ do_error '401 Unauthorized' \
+ 'The requested path '^$"location^' requires authorization.'
+}
+
fn 404{
do_error '404 Not Found' \
'The requested path '^$"location^' was not found on this server.'