diff --git a/bin/contrib/rc-httpd/handlers/error b/bin/contrib/rc-httpd/handlers/error index 282d870..fa594a9 100755 --- a/bin/contrib/rc-httpd/handlers/error +++ b/bin/contrib/rc-httpd/handlers/error @@ -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 ' @@ -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.'