Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions www/www.vcl.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -615,34 +615,6 @@ sub vcl_error {
return (deliver);
}

if (obj.status == 829) {
set obj.status = 429;
set obj.response = "Too Many Requests";
set obj.http.Fastly-Backend-Name = "too_many_requests";

synthetic {"
<!DOCTYPE html>
<html>
<head>
<title>Welcome to GOV.UK</title>
<style>
body { font-family: Arial, sans-serif; margin: 0; }
header { background: black; }
h1 { color: white; font-size: 29px; margin: 0 auto; padding: 10px; max-width: 990px; }
p { color: black; margin: 30px auto; max-width: 990px; }
</style>
</head>
<body>
<header><h1>GOV.UK</h1></header>
<p>Sorry, there have been too many attempts to access this page.</p>
<p>Try again in a few minutes.</p>
</body>
</html>
"};

return (deliver);
}

if (obj.status == 806) {
set obj.status = 501;
set obj.response = "Not Implemented";
Expand Down