{{!--
    Renders the responses section of an operation
    @param {Response[]} responses a list of Swagger-Response definitions
    @param {string[]} produces a list of response content types produces by the operation
    @api public
--}}

{{#if responses}}
    <section class="sw-response-body">
        <p>{{#each produces}}<span class="label label-default">{{.}}</span> {{/each}}</p>

        <table class="table">
            <thead>
            <tr>
                <th class="sw-response-code"></th>
                <th class="sw-response-description"></th>
                <th class="sw-response-data-type hidden-xs hidden-sm"></th>
            </tr>
            </thead>
            <tbody>
            {{#each responses}}
                <tr>
                    <td>{{@key}}</td>
                    <td>
                        <div class="sw-response-description-text">
                            {{md description}}
                        </div>
                        <section class="visible-xs visible-sm">
                            {{>swagger/model model=schema}}
                        </section>
                    </td>
                    <td class="hidden-xs hidden-sm">{{>swagger/model model=schema}}</td>
                </tr>
            {{/each}}
            </tbody>
        </table>
    </section>

{{/if}}
{{!--
    Renders the responses section of an operation
    @param {Response[]} responses a list of Swagger-Response definitions
    @param {string[]} produces a list of response content types produces by the operation
    @api public
--}}

{{#if responses}}
    <section class="sw-response-body">
        <p>{{#each produces}}<span class="label label-default">{{.}}</span> {{/each}}</p>

        <table class="table">
            <thead>
            <tr>
                <th class="sw-response-code"></th>
                <th class="sw-response-description"></th>
                <th class="sw-response-data-type hidden-xs hidden-sm"></th>
            </tr>
            </thead>
            <tbody>
            {{#each responses}}
                <tr class="sw-response-code-{{@key}}">
                    <td>{{@key}}</td>
                    <td>
                        <div class="sw-response-description-text">
                            {{md description}}
                        </div>
                        <section class="visible-xs visible-sm">
                            {{>swagger/model model=schema}}
                        </section>
                    </td>
                    <td class="hidden-xs hidden-sm">{{>swagger/model model=schema}}</td>
                </tr>
            {{/each}}
            </tbody>
        </table>
    </section>

{{/if}}
Add response code as part of css-class to corresponding table row
Add response code as part of css-class to corresponding table row

This is mostly done to identify the row in test cases, but it might also
be used for styling
