mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
refactor API errors to standard error format
This commit is contained in:
parent
5ed25fb76e
commit
76148b27f7
75 changed files with 785 additions and 547 deletions
|
@ -25,7 +25,7 @@ function getSegmentsSha256 (req: express.Request, res: express.Response) {
|
|||
const result = LiveManager.Instance.getSegmentsSha256(videoUUID)
|
||||
|
||||
if (!result) {
|
||||
return res.sendStatus(HttpStatusCode.NOT_FOUND_404)
|
||||
return res.status(HttpStatusCode.NOT_FOUND_404).end()
|
||||
}
|
||||
|
||||
return res.json(mapToJSON(result))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue