Fix HTTP 501 -> HTTP 400 suggestions in PR review

This commit is contained in:
wiz
2022-07-10 14:51:09 +02:00
committed by GitHub
parent 18030ba33e
commit 22bd8c4bf8
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {