123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- package app
- const (
- SUCCESS = 200
- ERROR = 500
- INVALID_PARAMS = 400
- ERROR_EXIST = 10001
- ERROR_EXIST_FAIL = 10002
- ERROR_NOT_EXIST = 10003
- ERROR_GET_S_FAIL = 10004
- ERROR_COUNT_FAIL = 10005
- ERROR_ADD_FAIL = 10006
- ERROR_EDIT_FAIL = 10007
- ERROR_DELETE_FAIL = 10008
- ERROR_EXPORT_FAIL = 10009
- ERROR_IMPORT_FAIL = 10010
- ERROR_AUTH_CHECK_TOKEN_FAIL = 20001
- ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 20002
- ERROR_AUTH_TOKEN = 20003
- ERROR_AUTH = 20004
- THROUGHOUt_THE_DAY_TO_END = 30001
- RECALL = 30002
- )
- const (
- StatusContinue = 100
- StatusSwitchingProtocols = 101
- StatusProcessing = 102
- StatusEarlyHints = 103
- StatusOK = 200
- StatusCreated = 201
- StatusAccepted = 202
- StatusNonAuthoritativeInfo = 203
- StatusNoContent = 204
- StatusResetContent = 205
- StatusPartialContent = 206
- StatusMultiStatus = 207
- StatusAlreadyReported = 208
- StatusIMUsed = 226
- StatusMultipleChoices = 300
- StatusMovedPermanently = 301
- StatusFound = 302
- StatusSeeOther = 303
- StatusNotModified = 304
- StatusUseProxy = 305
- _ = 306
- StatusTemporaryRedirect = 307
- StatusPermanentRedirect = 308
- StatusBadRequest = 400
- StatusUnauthorized = 401
- StatusPaymentRequired = 402
- StatusForbidden = 403
- StatusNotFound = 404
- StatusMethodNotAllowed = 405
- StatusNotAcceptable = 406
- StatusProxyAuthRequired = 407
- StatusRequestTimeout = 408
- StatusConflict = 409
- StatusGone = 410
- StatusLengthRequired = 411
- StatusPreconditionFailed = 412
- StatusRequestEntityTooLarge = 413
- StatusRequestURITooLong = 414
- StatusUnsupportedMediaType = 415
- StatusRequestedRangeNotSatisfiable = 416
- StatusExpectationFailed = 417
- StatusTeapot = 418
- StatusMisdirectedRequest = 421
- StatusUnprocessableEntity = 422
- StatusLocked = 423
- StatusFailedDependency = 424
- StatusTooEarly = 425
- StatusUpgradeRequired = 426
- StatusPreconditionRequired = 428
- StatusTooManyRequests = 429
- StatusRequestHeaderFieldsTooLarge = 431
- StatusUnavailableForLegalReasons = 451
- StatusInternalServerError = 500
- StatusNotImplemented = 501
- StatusBadGateway = 502
- StatusServiceUnavailable = 503
- StatusGatewayTimeout = 504
- StatusHTTPVersionNotSupported = 505
- StatusVariantAlsoNegotiates = 506
- StatusInsufficientStorage = 507
- StatusLoopDetected = 508
- StatusNotExtended = 510
- StatusNetworkAuthenticationRequired = 511
- )
|