Skip to content

Instantly share code, notes, and snippets.

@pepetox

pepetox/index.js

Created Sep 13, 2020
Embed
What would you like to do?
Simulate Fail
let count = 0;
exports.helloWorld = (req, res) => {
count++;
if(count<5){
res.status(500).json({"error": "System error"});
}else{
res.status(200).json({"llamada": count});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment