bin/contrib/rc-httpd/handlers/error: add missing error 400

This commit is contained in:
sl 2021-11-22 00:45:43 -05:00
parent d8f8ed14a9
commit 37edc0cbad

View File

@ -3,7 +3,7 @@
fn do_error{
echo 'HTTP/1.1 '^$1^$cr
emit_extra_headers
echo 'Content-type: text/html'^$cr
echo 'Content-type: text/html; charset=utf-8'^$cr
echo $cr
echo '<html>
<head>
@ -19,6 +19,11 @@ fn do_error{
'
}
fn 400{
do_error '400 Bad Request' \
'The request was invalid.'
}
fn 401{
do_error '401 Unauthorized' \
'The requested path '^$"location^' requires authorization.'