mirror of
https://github.com/actix/examples
synced 2025-06-29 02:10:36 +02:00
Demonstrate how to render error pages using templates.
This commit is contained in:
10
template_tera/templates/error.html
Normal file
10
template_tera/templates/error.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{{ error }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ status_code }} {{ error }}</h1>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user