From 258255c09beaa478656f43537ed784cc30281f56 Mon Sep 17 00:00:00 2001 From: Nycholas de Oliveira e Oliveira Date: Thu, 19 Jul 2012 13:01:58 -0300 Subject: [PATCH] #21 Alter status http exception OtherError (something client HTTP raise exception in status != 200) --- jsonrpc/exceptions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/jsonrpc/exceptions.py b/jsonrpc/exceptions.py index 575b9bb..d2d2a2d 100644 --- a/jsonrpc/exceptions.py +++ b/jsonrpc/exceptions.py @@ -59,13 +59,11 @@ class InvalidRequestError(Error): """ The received JSON is not a valid JSON-RPC Request. """ code = -32600 message = _('Invalid Request.') - status = 400 class MethodNotFoundError(Error): """ The requested remote-procedure does not exist / is not available. """ code = -32601 message = _('Method not found.') - status = 404 class InvalidParamsError(Error): """ Invalid method parameters. """