diff --git a/mod/workspace/_workspace.js b/mod/workspace/_workspace.js index 917ecf859..32277073a 100644 --- a/mod/workspace/_workspace.js +++ b/mod/workspace/_workspace.js @@ -22,9 +22,7 @@ module.exports = async (req, res) => { // The keys object must own a user provided lookup key if (!Object.hasOwn(keys, req.params.key)) { - return res.send(` - Failed to evaluate 'key' param.

- Workspace API`) + return res.status(400).send(`Failed to evaluate '${req.params.key}' param.`) } return keys[req.params.key](req, res)