docs: function defaultConsole (error, config) {
    // note unformatted error will not have any own properties to loop over. ie,
    // format needs to be called first
    let status
    let message
    if (!config.all && error.status < 400) {
      status = chalk.cyan(error.status)
    } else if (!config.all && error.status < 500) {
      status = chalk.yellow(error.status)
    } else {
      status = chalk.red(error.status)
      message = `[${error.name}] ${error.message}`
    }
  
    status = chalk.bold(status)
  
    console.error(`${prefix}${status} ${(message || error.message)}`)
    if (error.status === 422) {
      console.error(`${prefix}details: ${JSON.stringify(error.details, null, '  ')}`)
    }
  
    if (error.stack) {
      console.error(`${prefix}${highlightStack(error.stack.slice(error.stack.indexOf('\n') + 1)).trim()}\n`)
    }
  }