fix: use more appropriate status code

This commit is contained in:
Isaac 2024-01-14 19:55:22 +00:00
parent f126a6d4a3
commit 036c208cf8
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -1,6 +1,6 @@
module.exports.get = () => ({ module.exports.get = () => ({
handler: async (req, res) => { handler: async (req, res) => {
const { status } = res.context.config.client.ws; const { status } = res.context.config.client.ws;
res.code(status === 0 ? 200 : 425).send(status); res.code(status === 0 ? 200 : 503).send(status);
}, },
}); });