Catch not authorized errors