From c545924fe9676119d647ace5d64a8f4fcb5d6ddd Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 6 Dec 2023 10:50:20 +0200 Subject: [PATCH] adjust errors controller --- app/controllers/errors_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 53e4aeb7..19c47507 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -12,7 +12,7 @@ class ErrorsController < ActionController::Base ].freeze def show - if request.original_fullpath.in?(ENTERPRISE_PATHS) + if request.original_fullpath.in?(ENTERPRISE_PATHS) && error_status_code == 404 return render json: { status: 404, message: ENTERPRISE_FEATURE_MESSAGE }, status: :not_found end