Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
constants: Add 'NOT_FOUND' to JSONRPC_ERRORS.
Browse files Browse the repository at this point in the history
Don't like that we're overloading 'METHOD_NOT_FOUND' for "data not
found" errors.  Have a separate code.
  • Loading branch information
mbarnes authored and ashcrow committed Jan 10, 2017
1 parent 33bd77d commit ec3448d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commissaire/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
'STORAGE_LOOKUP_ERROR': -20000,

# Custom codes
'NOT_FOUND': 404,
'CONFLICT': 409,
}

Expand Down

0 comments on commit ec3448d

Please sign in to comment.