Skip to content

Commit

Permalink
fix: use more appropriate status code
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 14, 2024
1 parent f126a6d commit 036c208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/status.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports.get = () => ({
handler: async (req, res) => {
const { status } = res.context.config.client.ws;
res.code(status === 0 ? 200 : 425).send(status);
res.code(status === 0 ? 200 : 503).send(status);
},
});

0 comments on commit 036c208

Please sign in to comment.