There was an error while loading. Please reload this page.
1 parent 077c598 commit 94c45faCopy full SHA for 94c45fa
1 file changed
middleware-exercise/off-the-shelf-middleware.js
@@ -26,7 +26,7 @@ const validateArray = (req, res, next) => {
26
) {
27
next();
28
} else {
29
- res.status(400).send("Error message");
+ res.status(400).send("Invalid request body. Expected a JSON array containing only strings.");
30
}
31
};
32
0 commit comments