error 204 crash the RPC server. changing the 204 error to 404 when data not found

This commit is contained in:
adator
2025-11-23 00:53:03 +01:00
parent b527282bf2
commit 9e688f7964
4 changed files with 6 additions and 4 deletions

View File

@@ -42,4 +42,4 @@ class RPCUser(IRPC):
return JSONResponse(self.response_model)
self.response_model['result'] = 'User not found!'
return JSONResponse(self.response_model, self.http_status_code.HTTP_204_NO_CONTENT)
return JSONResponse(self.response_model, self.http_status_code.HTTP_404_NOT_FOUND)