PERMISSION_DENIED was renamed "PermissionDeniedError" (in gh-pages)

not sure what the future plan for gh-pages is, but cherry-picked for consistency.