standarized errors a little (responseUtils.js)