added unauthorized error variables to replace strings