Versions in this module Expand all Collapse all v0 v0.3.2 Nov 9, 2018 Changes in this version + const ErrorBadRequest + const ErrorForbidden + const ErrorInternalServer + const ErrorNotFound + const ErrorNotImplemented + const ErrorUnauthorized + func ErrorBadRequestStatus(message string) []byte + func ErrorForbiddenStatus(message string) []byte + func ErrorInternalServerStatus(message string) []byte + func ErrorNotFoundStatus(message string) []byte + func ErrorNotImplementedStatus(message string) []byte + func ErrorUnauthorizedStatus(message string) []byte + func HttpError(res *restful.Response, code int, format string, a ...interface{}) error + func NewNotFoundError(msg string) error + type ErrorSpec struct + Code int + Message string + type NotFoundError struct + S string + func (e *NotFoundError) Error() string + type NotImplementError struct + S string + func (e *NotImplementError) Error() string