diff --git a/lib/middleware/compressed_requests.rb b/lib/middleware/compressed_requests.rb index 0473fcb..ca7135e 100644 --- a/lib/middleware/compressed_requests.rb +++ b/lib/middleware/compressed_requests.rb @@ -34,7 +34,7 @@ def call(env) [status, headers, response] rescue => err Rails.logger.error(err.inspect) - [500, {}, [{"status": 500, "title": err.message}.to_json]] + [406, {}, [{"status": 406, "title": err.message}.to_json]] end end