add error handling to api read query implementations, for not found exceptions