feat: update error codes in the projects API
This commit is contained in:
parent
44c923144a
commit
11cb9b9dd9
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ App::put('/v1/projects/:projectId/webhooks/:webhookId')
|
|||
]);
|
||||
|
||||
if ($webhook === false || $webhook->isEmpty()) {
|
||||
throw new Exception('Webhook not found', 404), Exception::WEBHOOK_NOT_FOUND;
|
||||
throw new Exception('Webhook not found', 404, Exception::WEBHOOK_NOT_FOUND);
|
||||
}
|
||||
|
||||
$webhook
|
||||
|
|
Loading…
Reference in a new issue