Introduce HTTP400HtmlResponse.

HTTP400HtmlResponse is build on the same design than HTTP404HtmlResponse.
This commit is contained in:
Matthieu Gautier
2022-03-28 16:23:48 +02:00
parent 574c1ad690
commit b1643e422e
4 changed files with 61 additions and 0 deletions

15
static/templates/400.html Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
<title>Invalid request</title>
</head>
<body>
<h1>Invalid request</h1>
{{#details}}
<p>
{{{p}}}
</p>
{{/details}}
</body>
</html>