Skip to content

Commit ec7dbd7

Browse files
committed
AO3-6911: return 504
1 parent d507d2a commit ec7dbd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controllers/errors_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ def auth_error
1111

1212
def timeout_error
1313
@page_subtitle = t(".subtitle")
14-
render "timeout_error", status: 200, formats: :html
14+
render "timeout_error", status: 504, formats: :html
1515
end
1616
end

spec/controllers/errors_controller_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
describe "GET #timeout_error" do
4141
it "returns an HTML timeout error page" do
4242
get :timeout_error
43-
expect(response.status).to eq(200)
43+
expect(response.status).to eq(504)
4444
expect(response.header["Content-Type"]).to eq("text/html; charset=utf-8")
4545
end
4646
end

0 commit comments

Comments
 (0)