# Functions
Error2code return the http code according the Error code field or try to deduce it from the error itself.
ErrorEncoder writes the error into http.ResponseWriter.
GetError builds or gets the Error type.
New returns Error with err in Cause and message.
NewErrorHandler returns an instance of transport.ErrorHandler.
NewHTTP returns Error with err in Cause, code in http.StatusCode and message.
Wrap the error with Error type.
# Variables
ErrMethod is raised when a internal call failed.
ErrServiceUnavailable is raised when a remote service fail to response.
ErrTokenCheck is raised when check validity token failed.
ErrTokenInvalid is raised when token is invalid.
ErrTokenNotFound is raise when HTTP header does not contain Authorization.
ErrUnAuthorized is raised by check token on kratos with a non authorized token.
# Interfaces
Interface of errorx.