HTTP code ``400`` would be more appropriate here. ``406`` is more when the request has ``Accept`` Header set to JSON and we would be only able to render XML for instance.