authorization errors handling