Skip to content

Commit

Permalink
Merge pull request #187 from datacite/set-gzip-errors-to-http-406
Browse files Browse the repository at this point in the history
use https status 406 instead of 500 for rack errors
  • Loading branch information
wendelfabianchinsamy authored May 24, 2024
2 parents 1ba7f9a + 7d255b8 commit a26fe85
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 a26fe85

Please sign in to comment.