Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CodeInternal ... CodeInternal = Code(iota) CodeUnauthorized // CodeNotFound ... CodeNotFound // CodeDependentServiceFailure ... CodeDependentServiceFailure )
Variables ¶
View Source
var HTTPMapping = map[Code]int{ CodeInternal: http.StatusInternalServerError, CodeUnauthorized: http.StatusUnauthorized, CodeNotFound: http.StatusNotFound, CodeDependentServiceFailure: http.StatusInternalServerError, }
HTTPMapping is a mapping between error codes and http status codes.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.