I'm currently writing an app that posts some data to a HTML form and parses the resulting HTML response page. Depending on the input my user sends the HTML response can either contain valid payload data or request that the user validate an error in the data they entered.
I'm slightly confused as to how to implement the interface for my call to the HTML service. Specifically do I use exceptions to handle the responses which require further user validation or do I incorporate them into a hierarchy and use the base type as my interface return type?
Is there a best approach for implementing such interfaces?