Spaces:
Paused
Paused
Download controllers/errorController.js from arabdullah/chatty: direct link, hf CLI and curl.
- Browser
- Download file 139 Bytes
-
https://huggingface.co/spaces/arabdullah/chatty/resolve/main/controllers/errorController.js
- Command line
-
hf download hf://spaces/arabdullah/chatty/controllers/errorController.js
-
curl -L -o errorController.js https://huggingface.co/spaces/arabdullah/chatty/resolve/main/controllers/errorController.js
139 Bytes
| module.exports = (err, req, res, next) => { | |
| res.status(err.statusCode).json({ | |
| status: err.status, | |
| message: err.message, | |
| }); | |
| }; | |