-```javascript -exports.apiV1CreateAccountPOST = function(body) { - return new Promise(function(resolve, reject) { - //sample code - if (!body.hasOwnProperty('firstname')) { - const errorResponse = { - errorCode: "400", - message: "Bad Request: Missing 'firstname' parameter in request body" - }; - reject(errorResponse); - } - ...// rest code continues here -``` -
-