feat: add JSON-dry methods to Error