diff --git a/src/controller/StreamController.ts b/src/controller/StreamController.ts index e7086ff..6d69549 100644 --- a/src/controller/StreamController.ts +++ b/src/controller/StreamController.ts @@ -35,7 +35,9 @@ export class StreamController { } else if (rawId.startsWith('tt')) { id = ImdbId.fromString(rawId); } else { - throw new Error(`Unsupported ID: ${rawId}`); + res.status(400).send(`Unsupported ID: ${rawId}`); + + return; } const ctx = contextFromRequestAndResponse(req, res);