index.js
function status (res) {
  return err => {
    const code = err.statusCode
    error(res, code || 500)
    if (!code) console.log(err)
  }
}
function status (res) {
  return err => {
    const code = err.statusCode
    error(res, code || 500)
    if (!code) console.log(err)
  }
}
function status ( res ) { return err => { const code = err . statusCode error ( res , code || 500 ) if ( ! code ) console . log ( err ) } }
Set response status code and message.

@param {Object} response
@return {Function}
@api private
Set response status code and message .