HTTP 400 for bad queries