Buckets:
| const { | |
| kReplyHasStatusCode | |
| } = require('./symbols') | |
| function setErrorStatusCode (reply, err) { | |
| if (!reply[kReplyHasStatusCode] || reply.statusCode === 200) { | |
| const statusCode = err && (err.statusCode || err.status) | |
| reply.code(statusCode >= 400 ? statusCode : 500) | |
| } | |
| } | |
| module.exports = { setErrorStatusCode } | |
Xet Storage Details
- Size:
- 339 Bytes
- Xet hash:
- 8e14c4ab52c0c31f2ec27498f405be00b5b507736eb1c5f89efd10c6e5225b0b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.