We currently provide an afterLoad callback, but no mechanism to inspect whether the ajax response for the requested resource has returned a non 200 status.
One current route around this is to check viewer.api.getState() returns 'undefined' in the afterLoad.