I think you should use `render_api_error!` for compliance with other methods.
https://github.com/gitlabhq/gitlabhq/blob/master/lib/api/helpers.rb#L90