// ErrorMessage returns message associated with the error.
ErrorMessage returns message associated with the error.
// ErrorMessage returns message associated with the error .
func ErrorMessage(err error) string {
	var serr *statusError
	if !errors.As(err, &serr) {
		return strings.ToLower(http.StatusText(
			http.StatusInternalServerError))
	}
	return serr.Message
}
func ErrorMessage ( err error ) string { var serr * statusError if ! errors . As ( err , & serr ) { return strings . ToLower ( http . StatusText ( http . StatusInternalServerError ) ) } return serr . Message }
ErrorMessage returns message associated with the error.
ErrorMessage returns message associated with the error .