I'm creating an Alexa skill using NodeJS in AWS Lambda, following the same basic pattern as described in the How To sample app:
https://github.com/alexa/skill-sample-nodejs-howto
The Alexa Submission Checklist section, Verifying that Application ID in the Request Matches Your ID, states that:
"If the applicationId
provided with the request does not match your ID, reject the request by returning an HTTP error code."
I understand that I need to verify the applicationId
matches this.event.session.application.applicationId inside the intent handler, but I can't find a sample app or any example code that explains how to create the error response using the Alexa SDK. I'm assuming my application either needs to emit an error event or perhaps do something with the context object, but it's not clear what.