detect failed responses from node-theseus and reject the request's promise