Since this controller doesn't need to respond to HTML requests, these four lines could just be replaced with `render json: @countries`. You only need a `respond_to` block if an action needs to respond to multiple types of requests.