Let's say you are implementing an API and decide to return a base error response in common error situations such as BadRequest, NotFound etc.
final case class Error(code: String, description: String)If you are returning an error response, your assumption would probably be that such responses should contain at least one error.