Skip to content

Commit

Permalink
use https status 406 instead of 500 for rack errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed May 24, 2024
1 parent 1ba7f9a commit 7d255b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/compressed_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7d255b8

Please sign in to comment.