model - enhancement

Improved error handling for API errors returned 'on the pipe'.