docs: function oauthErrorResponder(req, res, err) {
    var accepts = req.accepts(['html', 'json']);
    var config = req.app.get('stormpathConfig');
  
    if (accepts === 'json') {
      return writeJsonError(res, err);
    }
  
    return renderLoginFormWithError(req, res, config, err);
  }