Created
September 13, 2020 16:39
-
-
Save pepetox/c38c77da3415bc02462dc9969a8b5ebe to your computer and use it in GitHub Desktop.
Simulate Fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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