capture 400 errors; remove logging statements