diff --git a/backend/src/api/explorer/channels.routes.ts b/backend/src/api/explorer/channels.routes.ts index 6735b7502..5ad1d8743 100644 --- a/backend/src/api/explorer/channels.routes.ts +++ b/backend/src/api/explorer/channels.routes.ts @@ -39,7 +39,7 @@ class ChannelsRoutes { private async $getChannelsForNode(req: Request, res: Response) { try { if (typeof req.query.public_key !== 'string') { - res.status(501).send('Missing parameter: public_key'); + res.status(400).send('Missing parameter: public_key'); return; } const index = parseInt(typeof req.query.index === 'string' ? req.query.index : '0', 10) || 0; @@ -57,7 +57,7 @@ class ChannelsRoutes { private async $getChannelsByTransactionIds(req: Request, res: Response) { try { if (!Array.isArray(req.query.txId)) { - res.status(500).send('Not an array'); + res.status(400).send('Not an array'); return; } const txIds: string[] = []; diff --git a/backend/src/api/explorer/general.routes.ts b/backend/src/api/explorer/general.routes.ts index 26897cb79..c7af43b42 100644 --- a/backend/src/api/explorer/general.routes.ts +++ b/backend/src/api/explorer/general.routes.ts @@ -16,7 +16,7 @@ class GeneralLightningRoutes { private async $searchNodesAndChannels(req: Request, res: Response) { if (typeof req.query.searchText !== 'string') { - res.status(501).send('Missing parameter: searchText'); + res.status(400).send('Missing parameter: searchText'); return; } try {