Skip to content

Commit 2b2beff

Browse files
authored
Set status code on failed cert upload (#491)
1 parent 36ea70f commit 2b2beff

File tree

1 file changed

+1
-0
lines changed
  • framework/python/src/api

1 file changed

+1
-0
lines changed

framework/python/src/api/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ async def upload_cert(self,
681681

682682
# Return error if something went wrong
683683
if cert_obj is None:
684+
response.status_code = 500
684685
return self._generate_msg(
685686
False,
686687
"Failed to upload certificate. Is it in the correct format?"

0 commit comments

Comments
 (0)