From a8aaa6deea623b5e775e7f2ebcb999f2e02dfffe Mon Sep 17 00:00:00 2001 From: Shumak Manohar <32662494+shumakmanohar@users.noreply.github.com> Date: Thu, 4 Aug 2022 18:41:09 +0530 Subject: [PATCH] Update overview.mdx --- docs/rest-api/overview.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rest-api/overview.mdx b/docs/rest-api/overview.mdx index fd334933f4..66026236b2 100644 --- a/docs/rest-api/overview.mdx +++ b/docs/rest-api/overview.mdx @@ -103,9 +103,9 @@ const Orders = { handler: async (req, res, next) => { const tracking = await getTrackingInfo(req.params.id); if (tracking) { - res.status('200').send({ tracking }); + res.status(200).send({ tracking }); } else { - res.status('404').send({ error: 'not found' }); + res.status(404).send({ error: 'not found' }); } } }