Skip to content

Commit

Permalink
add example 404 and 508 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Keksoj committed Apr 5, 2024
1 parent 4923153 commit b9df0c1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions command/assets/custom_404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HTTP/1.1 404 Not Found
Cache-Control: no-cache
Connection: close
Sozu-Id: %SOZU_ID

<h1>My own 404 error page</h1>
<p>Your request %SOZU_ID found no frontend and cannot be redirected.</p>
11 changes: 11 additions & 0 deletions command/assets/custom_503.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
HTTP/1.1 503 Service Unavailable
Cache-Control: no-cache
Connection: close
%Content-Length: %CONTENT_LENGTH
Sozu-Id: %SOZU_ID

<h1>MyCluster: 503 Service Unavailable</h1>
<p>No server seems to be alive, could not redirect request %SOZU_ID.</p>
<pre>
%DETAILS
<pre>

0 comments on commit b9df0c1

Please sign in to comment.