issue #14 - minor refactoring of the response validation and error handling to bring into line with the new error handling