bin/contrib/rc-httpd/handlers/error: add missing error 400
This commit is contained in:
parent
3a90e2da78
commit
1a0337f684
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue