Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
DEVOPS-8988: Make http error codes more meaningful for end user to un…
Browse files Browse the repository at this point in the history
…derstand
  • Loading branch information
amohammedalfresco committed Sep 25, 2017
1 parent 209a5e9 commit 0b7d8f5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/default/errors/400.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['400_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['400_error_page_message'] %></h2><h3>Bad request. The request could not be understood by the server due to malformed syntax.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/403.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['403_error_page_message'] %></h2><h3>please try again in a few minutes (or not, if you are being naughty).</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['403_error_page_message'] %></h2><h3>Forbidden. The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/404.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['404_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['404_error_page_message'] %></h2><h3>Not found. The requested resource could not be found.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/408.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['408_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['408_error_page_message'] %></h2><h3>Request Timeout. Please try again in a few minutes.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/500.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['500_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['500_error_page_message'] %></h2><h3>Internal Server Error. Please try again in a few minutes.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/502.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['502_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['502_error_page_message'] %></h2><h3>Bad Gateway. Please try again in a few minutes.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/503.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['503_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['503_error_page_message'] %></h2><h3>Services still starting up. Please try again in a few minutes.</html>
2 changes: 1 addition & 1 deletion templates/default/errors/504.http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cache-Control: no-cache
Connection: close
Content-Type: text/html

<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['504_error_page_message'] %></h2><h3>please try again in a few minutes.</html>
<!doctype html><html><title>Ow! -- <%= node['alfresco']['public_hostname'] %></title><style>body{text-align:center;position:absolute;top:50%;margin:0;margin-top:-275px;width:100%}h2,h3{color:#555;font:bold 200%/100px sans-serif;margin:0}h3{color:#777;font:normal 150% sans-serif}</style><img src=https://s3.amazonaws.com/alfresco-static/rain.png alt=ow!><h2><%= node['haproxy']['504_error_page_message'] %></h2><h3>Gateway timeout. Please try again in a few minutes.</html>

0 comments on commit 0b7d8f5

Please sign in to comment.