module RemoteDatabaseCleanerHomeRails
  class HomeController < ApplicationController 

    skip_before_filter *RemoteDatabaseCleanerHomeRails.skip_before_filter
    
    def clean 
      if RemoteDatabaseCleanerHomeRails.enabled?
        DatabaseCleaner.strategy = strategy 
        DatabaseCleaner.clean
        render json: {response: 200}
      else
        render json: { status: 403 }, status: 403
      end
    end

    private

    def strategy
      RemoteDatabaseCleanerHomeRails.strategy
    end
  end
end

module RemoteDatabaseCleanerHomeRails
  class HomeController < ApplicationController 

    skip_before_filter *RemoteDatabaseCleanerHomeRails.skip_before_filter
    
    def clean 
      if RemoteDatabaseCleanerHomeRails.enabled?
        DatabaseCleaner.strategy = strategy 
        DatabaseCleaner.clean
        render json: {response: 200}
      else
        forbidden = 403
        render json: { status: forbidden }, status: forbidden
      end
    end

    private

    def strategy
      RemoteDatabaseCleanerHomeRails.strategy
    end
  end
end

Make status code a variable
Make status code a variable
