return 422 instead of 500, and no error in the logs, for segment parameter that is too long