Download next.js/test/integration/api-support/pages/api/error.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 84 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/api-support/pages/api/error.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/api-support/pages/api/error.js
-
curl -L -o error.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/api-support/pages/api/error.js
84 Bytes
| export default (req, res) => { | |
| res.status(500).json({ error: 'Server error!' }) | |
| } | |