From 3839f8b4f0966f4589eb05e835bb8444f7161470 Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Fri, 15 Nov 2024 18:01:05 +0200 Subject: [PATCH] change status code --- lib/middleware/compressed_requests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware/compressed_requests.rb b/lib/middleware/compressed_requests.rb index 7b23a99c3..2352df629 100644 --- a/lib/middleware/compressed_requests.rb +++ b/lib/middleware/compressed_requests.rb @@ -34,7 +34,7 @@ def call(env) rescue => err Raven.capture_exception(err) Rails.logger.error(err.inspect) - [500, {}, [{ "status": 400, "title": err.message }.to_json]] + [500, {}, [{ "status": 500, "title": err.message }.to_json]] end end