Browse Source

default error html pages

master
Walid Bekkal 2 years ago
parent
commit
4dad16bcdc
  1. 2
      Makefile
  2. BIN
      public/testsite/403error.jpeg
  3. BIN
      public/testsite/414error.jpeg
  4. BIN
      public/testsite/429error.jpeg
  5. 16
      public/testsite/error403.html
  6. 16
      public/testsite/error405.html
  7. 16
      public/testsite/error414.html
  8. 16
      public/testsite/error429.html
  9. 16
      public/testsite/error505.html

2
Makefile

@ -1,4 +1,4 @@
NAME= server
NAME= webserv
SRCS= srcs/webserv.cpp srcs/tools.cpp srcs/load/Env.cpp srcs/load/Server.cpp \
srcs/load/Route.cpp srcs/sock/Master.cpp srcs/sock/Client.cpp \
srcs/json/Nodes.cpp srcs/json/Token.cpp srcs/json/Parser.cpp

BIN
public/testsite/403error.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
public/testsite/414error.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
public/testsite/429error.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

16
public/testsite/error403.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>403 ERROR</title>
</head>
<body>
<h1>403 ERROR</h1>
<p>forbidden access</p>
<img src="./403error.jpeg" style="width: 25%; height: 25%;">
<ul>
<li><a href="/docs/">Documents</a></li>
<li><a href="/img/">Images</a></li>
</ul>
</body>
</html>

16
public/testsite/error405.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>405 ERROR</title>
</head>
<body>
<h1>405 ERROR</h1>
<p>method not allowed</p>
<img src="./503error.jpeg" style="width: 25%; height: 25%;">
<ul>
<li><a href="/docs/">Documents</a></li>
<li><a href="/img/">Images</a></li>
</ul>
</body>
</html>

16
public/testsite/error414.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>414 ERROR</title>
</head>
<body>
<h1>414 ERROR</h1>
<p>url too long</p>
<img src="./414error.jpeg" style="width: 25%; height: 25%;">
<ul>
<li><a href="/docs/">Documents</a></li>
<li><a href="/img/">Images</a></li>
</ul>
</body>
</html>

16
public/testsite/error429.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>429 ERROR</title>
</head>
<body>
<h1>429 ERROR</h1>
<p>too many requests</p>
<img src="./429error.jpeg" style="width: 25%; height: 25%;">
<ul>
<li><a href="/docs/">Documents</a></li>
<li><a href="/img/">Images</a></li>
</ul>
</body>
</html>

16
public/testsite/error505.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>505 ERROR</title>
</head>
<body>
<h1>505 ERROR</h1>
<p>http version not supported</p>
<img src="./404error.jpeg" style="width: 25%; height: 25%;">
<ul>
<li><a href="/docs/">Documents</a></li>
<li><a href="/img/">Images</a></li>
</ul>
</body>
</html>
Loading…
Cancel
Save