Documentation
¶
Index ¶
- Variables
- type Collect
- type DefaultErrorResponse
- func (d *DefaultErrorResponse) Clone() ErrorResponse
- func (d *DefaultErrorResponse) Error() string
- func (d *DefaultErrorResponse) ErrorData() map[string]interface{}
- func (d *DefaultErrorResponse) ErrorDescription() string
- func (d *DefaultErrorResponse) ErrorName() string
- func (d *DefaultErrorResponse) ErrorStatusCode() int
- type ErrorResponse
- func InvalidGrantWithFormat(format string, args ...interface{}) ErrorResponse
- func InvalidGrantWithMessage(message string) ErrorResponse
- func InvalidRequestCantBeEmptyOfName(name string) ErrorResponse
- func InvalidRequestInvalidDataOfName(name string) ErrorResponse
- func InvalidRequestParameterTooLongOfName(name string) ErrorResponse
- func InvalidRequestWithMessage(format string, params ...interface{}) ErrorResponse
- func InvalidRequestWrongFormatOfName(name string) ErrorResponse
- func InvalidTokenWithFormat(format string, args ...interface{}) ErrorResponse
- func InvalidTokenWithMessage(message string) ErrorResponse
- func NotFoundWithFormat(format string, args ...interface{}) ErrorResponse
- func NotFoundWithMessage(message string) ErrorResponse
- func ServerErrorCacheOperationWithFormat(format string, args ...interface{}) ErrorResponse
- func ServerErrorCacheOperationWithMessage(message string) ErrorResponse
- func ServerErrorCrossServiceOperationWithFormat(format string, args ...interface{}) ErrorResponse
- func ServerErrorCrossServiceOperationWithMessage(message string) ErrorResponse
- func ServerErrorDatabaseOperationWithFormat(format string, args ...interface{}) ErrorResponse
- func ServerErrorDatabaseOperationWithMessage(message string) ErrorResponse
- func ServerErrorEmailOperationWithFormat(format string, args ...interface{}) ErrorResponse
- func ServerErrorEmailOperationWithMessage(message string) ErrorResponse
- func ServerErrorPanicWithFormat(format string, args ...interface{}) ErrorResponse
- func ServerErrorPanicWithMessage(message string) ErrorResponse
- func ServerErrorSMSOperationWithFormat(format string, args ...interface{}) ErrorResponse
- func ServerErrorSMSOperationWithMessage(message string) ErrorResponse
Constants ¶
This section is empty.
Variables ¶
var Collection = &Collect{}
var InvalidClient = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Unauthorized, Name: constant.ErrorInvalidClient, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "401001", }, })
var InvalidClientExpiresAtIsTooLong = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Unauthorized, Name: constant.ErrorInvalidClient, Description: "client secret exp is too long", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "401002", }, })
var InvalidGrant = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Forbidden, Name: constant.ErrorInvalidGrant, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "403001", }, })
var InvalidGrantConditionCheckFail = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Forbidden, Name: constant.ErrorInvalidGrant, Description: "condition check fail", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "403004", }, })
var InvalidGrantPhoneAlreadySetup = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Forbidden, Name: constant.ErrorInvalidGrant, Description: "phone already setup", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "403002", }, })
var InvalidGrantRefreshTokenExpired = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Unauthorized, Name: constant.ErrorInvalidToken, Description: "refresh_token is expired", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "401103", }, })
var InvalidGrantScopeNotGranted = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Forbidden, Name: constant.ErrorInsufficientScope, Description: "scope not granted", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "403101", }, })
var InvalidGrantUserNotExistOrPasswordNotMatch = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Forbidden, Name: constant.ErrorInvalidGrant, Description: "user is not exist or password is not correct", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "403003", }, })
var InvalidRequest = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400001", }, })
var InvalidRequestCantConvert = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "can not convert", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400002", }, })
var InvalidRequestEmailUsed = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "email used", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400003", }, })
var InvalidRequestExpired = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "request expired", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400004", }, })
var InvalidRequestInvalidRequestUri = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "invalid request_uri", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400011", }, })
var InvalidRequestPhoneUsed = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "phone used", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400010", }, })
var InvalidRequestRecentPassword = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "recent password", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400009", }, })
var InvalidRequestRedirectUriIsNotMatch = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "redirect_uri is not match", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400012", }, })
var InvalidRequestSamePassword = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "same password", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400007", }, })
var InvalidRequestWeakPassword = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "weak password", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400008", }, })
var InvalidRequestWrongBodyFormat = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "wrong body format", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400015", }, })
var InvalidRequestWrongCodeChallenge = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "code_challenge format wrong", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400014", }, })
var InvalidRequestWrongCodeChallengeMethod = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "code_challenge_method should be `plain` or `S256`", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400013", }, })
var InvalidRequestWrongPassword = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "wrong password", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400006", }, })
var InvalidRequestWrongTokenFormat = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidRequest, Description: "wrong token format", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400005", }, })
var InvalidScope = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorInvalidScope, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400201", }, })
var InvalidToken = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Unauthorized, Name: constant.ErrorInvalidToken, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "401101", }, })
var InvalidTokenExpiredOrRevoked = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Unauthorized, Name: constant.ErrorInvalidToken, Description: "token expired or revoked", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "401102", }, })
var MethodNotAllowed = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.MethodNotAllowed, Name: "method_not_allowed", Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "405001", }, })
var NotFound = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.NotFound, Name: constant.ErrorNotFound, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "404001", }, })
var NotFoundCredentialNotFound = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.NotFound, Name: constant.ErrorNotFound, Description: "credential not found", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Server, ErrorCode: "404004", }, })
var NotFoundObjectNotExist = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.NotFound, Name: constant.ErrorNotFound, Description: "target object is not exist", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "404002", }, })
var NotFoundUserNotFound = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.NotFound, Name: constant.ErrorNotFound, Description: "user not found", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "404003", }, })
var NotImplemented = Collection.Register(&DefaultErrorResponse{ StatusCode: 0, Name: constant.ErrorNotImplemented, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Server, ErrorCode: "000000", ErrorMessage: "not_implemented", }, })
var SRPUnsupported = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.Forbidden, Name: constant.ErrorSRPUnsupported, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "403201", }, })
var ServerError = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Server, ErrorCode: "500001", }, })
var ServerErrorCacheOperationFail = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "cache operation fail", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Critical, ErrorCategory: kkerror.Cache, ErrorCode: "500006", }, })
var ServerErrorCantGetNecessaryData = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "can't get necessary data", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Server, ErrorCode: "500002", }, })
var ServerErrorCrossServiceOperationFail = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "cross service operation fail", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Critical, ErrorCategory: kkerror.Internal, ErrorCode: "500009", }, })
var ServerErrorDatabaseOperationFail = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "database operation fail", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Critical, ErrorCategory: kkerror.Database, ErrorCode: "500005", }, })
var ServerErrorEmailOperationFail = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "email operation fail", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Internal, ErrorCode: "500007", }, })
var ServerErrorOperationCantBeDone = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "operation can't be done", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Critical, ErrorCategory: kkerror.Process, ErrorCode: "500003", }, })
var ServerErrorOtherServiceConnectionDefeated = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "other service connection defeated", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Internal, ErrorCode: "500004", }, })
var ServerErrorPanic = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "panic", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Server, ErrorCode: "500099", }, })
var ServerErrorSMSOperationFail = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.InternalServerError, Name: constant.ErrorServerError, Description: "sms operation fail", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Critical, ErrorCategory: kkerror.Internal, ErrorCode: "500008", }, })
var SlowDownTooFast = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.TooManyRequests, Name: constant.ErrorSlowDown, Description: "too fast, rate limit exceeded", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "429001", }, })
var UnsupportedGrantType = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorUnsupportedGrantType, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400301", }, })
var UnsupportedOperation = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: "unsupported_operation", Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Urgent, ErrorCategory: kkerror.Client, ErrorCode: "400302", }, })
var UnsupportedResponseType = Collection.Register(&DefaultErrorResponse{ StatusCode: httpstatus.BadRequest, Name: constant.ErrorUnsupportedResponseType, Description: "", DefaultKKError: kkerror.DefaultKKError{ ErrorLevel: kkerror.Normal, ErrorCategory: kkerror.Client, ErrorCode: "400303", }, })
Functions ¶
This section is empty.
Types ¶
type Collect ¶
type Collect struct {
ErrorResponses map[ErrorResponse]ErrorResponse
// contains filtered or unexported fields
}
func (*Collect) Register ¶
func (c *Collect) Register(err ErrorResponse) ErrorResponse
type DefaultErrorResponse ¶
type DefaultErrorResponse struct {
kkerror.DefaultKKError
StatusCode int `json:"status_code,omitempty"`
Name string `json:"error,omitempty"`
Description string `json:"error_description,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
func (*DefaultErrorResponse) Clone ¶
func (d *DefaultErrorResponse) Clone() ErrorResponse
func (*DefaultErrorResponse) Error ¶
func (d *DefaultErrorResponse) Error() string
func (*DefaultErrorResponse) ErrorData ¶
func (d *DefaultErrorResponse) ErrorData() map[string]interface{}
func (*DefaultErrorResponse) ErrorDescription ¶
func (d *DefaultErrorResponse) ErrorDescription() string
func (*DefaultErrorResponse) ErrorName ¶
func (d *DefaultErrorResponse) ErrorName() string
func (*DefaultErrorResponse) ErrorStatusCode ¶
func (d *DefaultErrorResponse) ErrorStatusCode() int
type ErrorResponse ¶
type ErrorResponse interface {
kkerror.KKError
ErrorStatusCode() int
ErrorName() string
ErrorDescription() string
ErrorData() map[string]interface{}
Clone() ErrorResponse
}
func InvalidGrantWithFormat ¶ added in v1.9.1
func InvalidGrantWithFormat(format string, args ...interface{}) ErrorResponse
InvalidGrantWithFormat provides backward compatibility for dynamic format strings
func InvalidGrantWithMessage ¶ added in v1.6.0
func InvalidGrantWithMessage(message string) ErrorResponse
func InvalidRequestCantBeEmptyOfName ¶
func InvalidRequestCantBeEmptyOfName(name string) ErrorResponse
func InvalidRequestInvalidDataOfName ¶
func InvalidRequestInvalidDataOfName(name string) ErrorResponse
func InvalidRequestParameterTooLongOfName ¶
func InvalidRequestParameterTooLongOfName(name string) ErrorResponse
func InvalidRequestWithMessage ¶
func InvalidRequestWithMessage(format string, params ...interface{}) ErrorResponse
func InvalidRequestWrongFormatOfName ¶
func InvalidRequestWrongFormatOfName(name string) ErrorResponse
func InvalidTokenWithFormat ¶ added in v1.9.1
func InvalidTokenWithFormat(format string, args ...interface{}) ErrorResponse
InvalidTokenWithFormat provides backward compatibility for dynamic format strings
func InvalidTokenWithMessage ¶ added in v1.6.0
func InvalidTokenWithMessage(message string) ErrorResponse
func NotFoundWithFormat ¶ added in v1.9.1
func NotFoundWithFormat(format string, args ...interface{}) ErrorResponse
NotFoundWithFormat provides backward compatibility for dynamic format strings
func NotFoundWithMessage ¶
func NotFoundWithMessage(message string) ErrorResponse
func ServerErrorCacheOperationWithFormat ¶ added in v1.9.1
func ServerErrorCacheOperationWithFormat(format string, args ...interface{}) ErrorResponse
ServerErrorCacheOperationWithFormat provides backward compatibility for dynamic format strings
func ServerErrorCacheOperationWithMessage ¶
func ServerErrorCacheOperationWithMessage(message string) ErrorResponse
func ServerErrorCrossServiceOperationWithFormat ¶ added in v1.9.1
func ServerErrorCrossServiceOperationWithFormat(format string, args ...interface{}) ErrorResponse
ServerErrorCrossServiceOperationWithFormat provides backward compatibility for dynamic format strings
func ServerErrorCrossServiceOperationWithMessage ¶
func ServerErrorCrossServiceOperationWithMessage(message string) ErrorResponse
func ServerErrorDatabaseOperationWithFormat ¶ added in v1.9.1
func ServerErrorDatabaseOperationWithFormat(format string, args ...interface{}) ErrorResponse
ServerErrorDatabaseOperationWithFormat provides backward compatibility for dynamic format strings
func ServerErrorDatabaseOperationWithMessage ¶
func ServerErrorDatabaseOperationWithMessage(message string) ErrorResponse
func ServerErrorEmailOperationWithFormat ¶ added in v1.9.1
func ServerErrorEmailOperationWithFormat(format string, args ...interface{}) ErrorResponse
ServerErrorEmailOperationWithFormat provides backward compatibility for dynamic format strings
func ServerErrorEmailOperationWithMessage ¶
func ServerErrorEmailOperationWithMessage(message string) ErrorResponse
func ServerErrorPanicWithFormat ¶ added in v1.9.1
func ServerErrorPanicWithFormat(format string, args ...interface{}) ErrorResponse
ServerErrorPanicWithFormat provides backward compatibility for dynamic format strings
func ServerErrorPanicWithMessage ¶
func ServerErrorPanicWithMessage(message string) ErrorResponse
func ServerErrorSMSOperationWithFormat ¶ added in v1.9.1
func ServerErrorSMSOperationWithFormat(format string, args ...interface{}) ErrorResponse
ServerErrorSMSOperationWithFormat provides backward compatibility for dynamic format strings
func ServerErrorSMSOperationWithMessage ¶
func ServerErrorSMSOperationWithMessage(message string) ErrorResponse
Source Files
¶
- 000000_not_implemented.go
- 400001_invalid_request.go
- 400002_invalid_request_cant_convert.go
- 400003_invalid_request_email_used.go
- 400004_invalid_request_expired.go
- 400005_invalid_request_wrong_token_format.go
- 400006_invalid_request_wrong_password.go
- 400007_invalid_request_same_password.go
- 400008_invalid_request_weak_password.go
- 400009_invalid_request_recent_password.go
- 400010_invalid_request_phone_used.go
- 400011_invalid_request_invalid_request_uri.go
- 400012_invalid_request_redirect_uri_is_not_match.go
- 400013_invalid_request_wrong_code_challenge_method.go
- 400014_invalid_request_wrong_code_challenge.go
- 400015_invalid_request_wrong_body.go
- 400101_invalid_request_cant_be_empty_of_name.go
- 400102_invalid_request_with_message.go
- 400103_invalid_request_wrong_format_of_name.go
- 400104_invalid_request_invalid_parameter_of_name.go
- 400105_invalid_request_parameter_too_long_of_name.go
- 400201_invalid_scope.go
- 400301_unsupported_grant_type.go
- 400302_unsupported_operation.go
- 400303_unsupported_response_type.go
- 401001_invalid_client.go
- 401002_invalid_client_expires_at_is_too_long.go
- 401101_invalid_token.go
- 401102_invalid_token_expired_or_revoked.go
- 401103_invalid_token_refresh_token_expired.go
- 401402_invalid_token_with_message.go
- 403001_invalid_grant.go
- 403002_invalid_grant_phone_already_setup.go
- 403003_invalid_grant_user_not_exist_or_password_not_match.go
- 403004_invalid_grant_condition_check_fail.go
- 403101_insufficient_scope_scope_not_granted.go
- 403201_srp_unsupported.go
- 403401_invalid_grant_with_message.go
- 404001_not_found.go
- 404002_not_found_object_not_exist.go
- 404003_not_found_user_not_found.go
- 404004_not_found_crediential_not_found.go
- 404101_not_found_with_message.go
- 405001_method_not_allowed.go
- 429001_slow_down.go
- 500001_server_error.go
- 500002_server_error_cant_get_necessary_data.go
- 500003_server_error_operation_cant_be_done.go
- 500004_server_error_other_serivce_connection_defeated.go
- 500005_server_error_database_operation_fail.go
- 500006_server_error_cache_operation_fail.go
- 500007_server_error_email_operation_fail.go
- 500008_server_error_sms_operation_fail.go
- 500009_server_error_cross_service_operation_fail.go
- 500099_server_error_panic.go
- collection.go
- errorresponse.go