Unify error handling and HTTP statuses
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -4,8 +4,9 @@ type ErrorCode int
|
||||
|
||||
// https://github.com/DarkEnergyProcessor/NPPS4/blob/master/npps4/idol/error.py
|
||||
const (
|
||||
ErrorCodeUnknown ErrorCode = 1
|
||||
ErrorCodeNoUnitIsSellable ErrorCode = 1205
|
||||
ErrorCodeLivePreciseListNotFound ErrorCode = 3421
|
||||
ErrorCodeEventNoEventData ErrorCode = 10004
|
||||
)
|
||||
|
||||
const ErrorCodeAcceptableError = 600
|
||||
|
||||
Reference in New Issue
Block a user