function getResourceName (req) {
  try {
    return parseUrl.original(req).pathname
  } catch (e) {
    return 'resource'
  }
}
Get status code from response.

@param {OutgoingMessage} res
@return {number}
@private