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

@@ -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
}