expose `code` in response interface