class Aws::RpcV2::ErrorHandler

def remove_prefix(error_code, context)

def remove_prefix(error_code, context)
  if (prefix = context.config.api.metadata['errorPrefix'])
    error_code.sub(/^#{prefix}/, '')
  else
    error_code
  end
end