Improve accessibility of default error HTML.

This commit is contained in:
Sorin Davidoi 2020-02-22 21:29:41 +00:00 committed by Sergio Benitez
parent 20a76fee25
commit dfc9e9aab0
1 changed files with 4 additions and 2 deletions

View File

@ -125,16 +125,18 @@ macro_rules! error_page_template {
($code:expr, $name:expr, $description:expr) => (
concat!(r#"
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>"#, $code, " ", $name, r#"</title>
</head>
<body align="center">
<div align="center">
<div role="main" align="center">
<h1>"#, $code, ": ", $name, r#"</h1>
<p>"#, $description, r#"</p>
<hr />
</div>
<div role="contentinfo" align="center">
<small>Rocket</small>
</div>
</body>