Alexa.Cooking directive to your smart home add-on and you can’t handle it successfully, respond with an Alexa.Cooking.ErrorResponse event. For an overview of the Alexa.Cooking interfaces, see Build Smart Home Add-ons for Cooking Appliances.
ErrorResponse event
In the payload for theAlexa.Cooking.ErrorResponse, specify the type of the error and include a message with information about the error. For the list of Alexa.Cooking error types, see Error type values. You can send the error response in a synchronous or asynchronous response. For more details, see Alexa.ErrorResponse.
ErrorResponse event format
ErrorResponse event payload properties
Send an Alexa.ErrorResponse in anEvent object. Include the following information in the event.payload parameter.
| Field | Description | Type | Required |
|---|---|---|---|
type | The type of error. Alexa shares this with the customer. | String | Yes |
message | The error message for the error. Alexa doesn’t share this with the customer. | String | Yes |
Error type values
The following table shows the validAlexa.Cooking error types.
| Error Type | Description |
|---|---|
CHILD_LOCK | The child lock on the appliance is enabled. |
COOK_DURATION_TOO_LONG | The requested duration is too long for the appliance to run safely. When you send this error response, include a field in the payload named maxCookTime that indicates the maximum cook time allowed for the current cooking parameters. See example here. |
DOOR_CLOSED_TOO_LONG | The door hasn’t been opened and closed recently and the appliance is likely empty. For example, an attempt to start cooking when no food is present. |
DOOR_OPEN | The appliance door is open. For example, an attempt to start cooking while the door is open. |
PREHEAT_REQUIRED | The appliance must be preheated. |
PROBE_REQUIRED | The temperature probe must be inserted. |
REMOTE_START_NOT_SUPPORTED | Cooking remotely isn’t currently supported by the device. |
REMOVE_PROBE | The temperature probe must be removed. |
REMOTE_START_DISABLED | Cooking remotely was disabled and must be re-enabled before cooking. |
Alexa.Cooking error types, you can also use Alexa error types. For more details, see Alexa.ErrorResponse error type values.
Alexa.Cooking.ErrorResponse examples
The following examples show the payload for different error types.DOOR_OPEN
The following is an example error response for theDOOR_OPEN error type.
COOK_DURATION_TOO_LONG
The following is an example error response for theCOOK_DURATION_TOO_LONG error type.

