Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorTypeNotFound = "NOT_FOUND" ErrorTypeNotImplemented = "NOT_IMPLEMENTED" ErrorTypeNotValid = "NOT_VALID" ErrorTypeForbidden = "STATUS_FORBIDDEN" ErrorTypeInternalServerError = "STATUS_INTERNAL_SERVER_ERROR" )
Variables ¶
View Source
var KingErrStatus = map[string]int{ ErrorTypeNotFound: http.StatusNotFound, ErrorTypeUnauthorized: http.StatusUnauthorized, ErrorTypeNotImplemented: http.StatusNotImplemented, ErrorTypeNotValid: http.StatusBadRequest, ErrorTypeForbidden: http.StatusForbidden, ErrorTypeInternalServerError: http.StatusInternalServerError, }
View Source
var StatusKingErr = map[int]string{ http.StatusNotFound: ErrorTypeNotFound, http.StatusUnauthorized: ErrorTypeUnauthorized, http.StatusNotImplemented: ErrorTypeNotImplemented, http.StatusBadRequest: ErrorTypeNotValid, http.StatusForbidden: ErrorTypeForbidden, http.StatusInternalServerError: ErrorTypeInternalServerError, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.