code: function populateStatusesMap (statuses, codes) {
    var arr = []
  
    Object.keys(codes).forEach(function forEachCode (code) {
      var message = codes[code]
      var status = Number(code)
  
      // Populate properties
      statuses[status] = message
      statuses[message] = status
      statuses[message.toLowerCase()] = status
  
      // Add to array
      arr.push(status)
    })
  
    return arr
  }
docs: Populate the statuses map for given codes.
  @private