fixed some log statements, added HttpBadRequest for all terminal errors