Error response when fields could not be found

Updated for all types.

This should be `try { ... } catch { ... };` (ie use `catch` rather than `or`.  It looks like you used this pattern consistently, so it will need to be changed in each place.