refactored to use new RESTErrorResponse utility object
Merge remote-tracking branch 'origin/master'