Return errors of type Error instead of generic objects