From e6a21677dd8b938113ccbc4f794c922c39c49e64 Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Fri, 31 May 2024 15:37:44 +0100 Subject: [PATCH] Set status code on failed cert upload --- framework/python/src/api/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/python/src/api/api.py b/framework/python/src/api/api.py index 9071c96ad..6afbb0412 100644 --- a/framework/python/src/api/api.py +++ b/framework/python/src/api/api.py @@ -681,6 +681,7 @@ async def upload_cert(self, # Return error if something went wrong if cert_obj is None: + response.status_code = 500 return self._generate_msg( False, "Failed to upload certificate. Is it in the correct format?"