This post explains how to use field endpoints. I think error handling will be more straight forward that way.