Skip to content

Commit

Permalink
samuraisam#21 Alter status http exception OtherError (something clien…
Browse files Browse the repository at this point in the history
…t HTTP raise exception in status != 200)
  • Loading branch information
nycholas committed Jul 19, 2012
1 parent 667d41e commit 258255c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions jsonrpc/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. """
Expand Down

0 comments on commit 258255c

Please sign in to comment.