It's ok to fail fast if bad parameters are provided by the user, and since json-in-xml is used, more restrictions are welcomed.