Skip to content

Commit

Permalink
add status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Jul 11, 2024
1 parent 6b66b9b commit 769b023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vinywaji/gui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def get(self, request: HttpRequest, trigger: str):
webhook = WebhookConfig.objects.filter(trigger_key=trigger)
if len(webhook) == 1:
webhook[0].trigger()
return HttpResponse("OK")
return HttpResponse("OK", status_code=200)
else:
return HttpResponse("Failed")
return HttpResponse("Failed", status_code=404)


def manifest(request):
Expand Down

0 comments on commit 769b023

Please sign in to comment.