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:
@@ -12,12 +12,14 @@ class IRPC:
|
||||
self.http_status_code = http_status_code
|
||||
self.response_model = {
|
||||
"jsonrpc": "2.0",
|
||||
"method": 'unknown',
|
||||
"id": 123
|
||||
}
|
||||
|
||||
def reset(self):
|
||||
self.response_model = {
|
||||
"jsonrpc": "2.0",
|
||||
"method": 'unknown',
|
||||
"id": 123
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user