expose some util methods in the resthandler for use in the package.  Clean up error handling