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: response.rb
    path of file: ./repos/vets-api/modules/check_in/app/services/travel_claim
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
    
    def error_data(message:)
      error_code = case message
                   when /multiple appointments/i
                     CODE_MULTIPLE_APPTS
                   when /already has a claim/i
                     CODE_CLAIM_EXISTS
                   when /appointment not found/i
                     CODE_APPT_NOT_FOUND
                   when /unauthorized/i
                     CODE_INVALID_AUTH
                   else
                     CODE_SUBMISSION_ERROR
                   end