lib/docgen/StaticDocumentation.js
function(responses) {
    assert(_.isObject(responses))
    self = this
    var descriptor = function(response) {
      return {
        name: response.statusCode.toString(),
        statusCode: response.statusCode,
        description: response.description,
        schema: self._removeNoDocumentProperties(response.schema),
        example: response.example,
        headers: response.headers.length === 0 ? null : _.join(_.map(response.headers, function(header) {
          return _.trim(header.toString())
        }), '\n')
      }
    }
    return _.sortBy(_.map(responses, descriptor), function (r) { return r.name })
  }
function(responses) {
    assert(_.isObject(responses))
    self = this
    var descriptor = function(response) {
      return {
        name: response.statusCode.toString(),
        statusCode: response.statusCode,
        description: response.description,
        schema: self._removeNoDocumentProperties(response.schema),
        example: response.example,
        headers: response.headers.length === 0 ? null : _.join(_.map(response.headers, function(header) {
          return _.trim(header.toString())
        }), '\n')
      }
    }
    return _.sortBy(_.map(responses, descriptor), function (r) { return r.name })
  }
function ( responses ) { assert ( _ . isObject ( responses ) ) self = this var descriptor = function ( response ) { return { name : response . statusCode . toString ( ) , statusCode : response . statusCode , description : response . description , schema : self . _removeNoDocumentProperties ( response . schema ) , example : response . example , headers : response . headers . length === 0 ? null : _ . join ( _ . map ( response . headers , function ( header ) { return _ . trim ( header . toString ( ) ) } ) , '\n' ) } } return _ . sortBy ( _ . map ( responses , descriptor ) , function ( r ) { return r . name } ) }
********************************************************************
_generateResponseDescriptors

@param {object} responses
@returns {object}
******************************************************************** _generateResponseDescriptors