package routes import "strings" type ValidationError struct { Errors []string } func (e *ValidationError) Error() string { return "validation failed: " + strings.Join(e.Errors, ", ") } type InvalidJsonError struct { Message string } type ErrorResponse struct { Message string }