I think a better option here would be to use:

```
params.require(:content_view_id)
```

This will then cause this https://github.com/Katello/katello/blob/master/app/controllers/katello/api/v2/api_controller.rb#L33 to be thrown to user which would be more consistent.