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?"