You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: notification_settings_controller.rb
    path of file: ./repos/forem/app/controllers/users
    
    the code of the file until where you have to start completion: module Users
  class NotificationSettingsController < 
    
    def render_update_response(success, errors = nil)
      status = success ? 200 : 422

      respond_to do |format|
        format.json { render json: { errors: errors }, status: status }
      end
    end