mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-20 22:14:41 +01:00
api - updates errors and separates error from message in api errors responses
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Appointment errors [-1, -64]
|
||||
# Appointment errors [-1, -32]
|
||||
APPOINTMENT_EMPTY_FIELD = -1
|
||||
APPOINTMENT_WRONG_FIELD_TYPE = -2
|
||||
APPOINTMENT_WRONG_FIELD_SIZE = -3
|
||||
@@ -8,12 +8,14 @@ APPOINTMENT_FIELD_TOO_BIG = -6
|
||||
APPOINTMENT_WRONG_FIELD = -7
|
||||
APPOINTMENT_INVALID_SIGNATURE_OR_INSUFFICIENT_SLOTS = -8
|
||||
|
||||
# Registration errors [-65, -128]
|
||||
REGISTRATION_MISSING_FIELD = -65
|
||||
REGISTRATION_WRONG_FIELD_FORMAT = -66
|
||||
# Registration errors [-33, -64]
|
||||
REGISTRATION_MISSING_FIELD = -33
|
||||
REGISTRATION_WRONG_FIELD_FORMAT = -34
|
||||
|
||||
# Custom RPC errors
|
||||
RPC_TX_REORGED_AFTER_BROADCAST = -98
|
||||
# General errors [-65, -96]
|
||||
INVALID_REQUEST_FORMAT = -65
|
||||
|
||||
# Custom RPC errors [255+]
|
||||
RPC_TX_REORGED_AFTER_BROADCAST = -256
|
||||
# UNHANDLED
|
||||
UNKNOWN_JSON_RPC_EXCEPTION = -99
|
||||
UNKNOWN_JSON_RPC_EXCEPTION = -257
|
||||
|
||||
Reference in New Issue
Block a user