mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
error 204 crash the RPC server. changing the 204 error to 404 when data not found
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user