#Error Code
EC_UNKNOWNERROR = 0x7FFFFFFF
EC_ID_ALREADY_EXITS = 0x01000001
EC_PWD_DOES_NOT_MATCH = 0x01000002 #..... seems AUTHENTICATION_FAIL can do it
EC_PENDING_PNO_REQ_EXISTS = 0x01000003
EC_PNO_EXISTS = 0x01000004
EC_INVALID_TOKEN = 0x01000005
EC_INSUFFICIENT_PERM = 0x01000006
EC_AUTHENTICATION_FAIL = 0x01000007

#Account & History Error Code
EC_NOT_ACCOUNT_TYPE_HISTORY = 0x01000006 #
EC_NOT_MONEYUSER_TYPE_ACCOUNT = 0x01000007 #
EC_UID_DOES_NOT_EXISTS = 0x01000008

#MoneyUser ErrorCode
EC_USERNAME_DOES_NOT_EXISTS = 0x01000009 #
EC_ID_DOES_NOT_EXISTS = 0x0100000A #
EC_USERNAME_EXISTS = 0x100000B #

def exception_handler(error_code):
    return HttpResponse(error_code)




