27 lines
502 B
JavaScript
27 lines
502 B
JavaScript
const constants = {};
|
|
|
|
constants.amazonResultCodes = {
|
|
ok:200,
|
|
accepted:202,
|
|
badRequest:400,
|
|
unauthorized:401,
|
|
notFound:404,
|
|
conflict:409,
|
|
payloadTooLarge:413
|
|
}
|
|
|
|
constants.apiResultCodes = {
|
|
genericError : -1,
|
|
ok:0,
|
|
amazonError:1, //amazon api works, but error is some of the amazonResultCodes
|
|
amazonFail:2, //amazon api doesn't work
|
|
databaseError:3,
|
|
noSkill:4,
|
|
inconsistentState:5,
|
|
}
|
|
|
|
constants.skillIDLength = 24;
|
|
|
|
|
|
|
|
module.exports = constants; |