Fix returned status when content is not found.

pull/1829/head
SukantGujar 2019-03-12 18:28:57 +07:00
parent 1ab683b1e7
commit 0e03c8348a
1 changed files with 1 additions and 1 deletions

@ -21,7 +21,7 @@ export function createPartialContentHandler(contentProvider: ContentProvider, lo
} catch (error) {
logger.debug("ContentProvider threw exception: ", error);
if (error instanceof ContentDoesNotExistError) {
return res.status(400).send(error.message);
return res.status(404).send(error.message);
}
return res.sendStatus(500);
}