From 551149a6e6fbbbf9120c8df5d0eb56bd7d66faab Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Sun, 18 Feb 2024 16:24:56 -0800 Subject: [PATCH] 400 instead of 500 on Rack::Multipart::EmptyContentError Addresses https://app.honeybadger.io/projects/40972/faults/104941184#notice-trace --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/application.rb b/config/application.rb index 45770080924..be3888d5b68 100644 --- a/config/application.rb +++ b/config/application.rb @@ -67,6 +67,8 @@ class Application < Rails::Application config.autoload_paths << "#{root}/app/views/components" config.active_support.cache_format_version = 7.1 + + config.action_dispatch.rescue_responses["Rack::Multipart::EmptyContentError"] = :bad_request end def self.config