oops. My Bad
the code above should be
type AppError struct {
Code int
Message string
InternalMessage string
Time time.Time
HttpCode int
}