bin/contrib/rc-httpd/handlers/error: add missing error 400
This commit is contained in:
parent
d8f8ed14a9
commit
37edc0cbad
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user