req.errorCode => request.error.name

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>