Update shared/request.js; friendlier error messages