36 lines
722 B
JavaScript
36 lines
722 B
JavaScript
const constants = {};
|
|
|
|
constants.amazonResultCodes = {
|
|
OK:200,
|
|
ACCEPTED:202,
|
|
BAD_REQUEST:400,
|
|
UNAUTHORIZED:401,
|
|
NOT_FOUND:404,
|
|
CONFLICT:409,
|
|
PAYLOAD_TOO_LARGE:413
|
|
}
|
|
|
|
constants.apiResultCodes = {
|
|
GENERIC_ERROR : -1,
|
|
OK:0,
|
|
AMAZON_ERROR:1, //amazon api works, but error is some of the amazonResultCodes
|
|
AMAZON_FAIL:2, //amazon api doesn't work
|
|
DATABASE_ERROR:3,
|
|
NO_SKILL:4,
|
|
INCONSISTEN_STATE:5,
|
|
}
|
|
|
|
constants.HTTPResultCodes = {
|
|
INTERNAL_SERVER_ERROR : 500,
|
|
}
|
|
|
|
constants.SKILL_ID_LENGTH = 24;
|
|
|
|
constants.voiceResponseStrings = {
|
|
QUESTION_NOT_FOUND : 'Sorry, I didnt understan',
|
|
GENERIC_CONTINUE : 'Would you like to continue'
|
|
}
|
|
|
|
|
|
|
|
module.exports = constants; |