Error mapper from JSON & YAML