fixed bug on logs for BadRequest responses