Log error when receiving bad request