note sure that we'll always return `code` and `value`. Could we check for their presence ?