aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-26 09:14:14 +0200
committerChocobozzz <me@florianbigard.com>2020-08-26 09:14:14 +0200
commite6abf95e9fc9fde52d583850cf7faafdf7d050d5 (patch)
tree704e5cb65e93a5d68d558a9b20a81e3909d8142c /shared/models
parentca00baa75ae849b1ba4953f0ff843ff5452f6745 (diff)
downloadPeerTube-e6abf95e9fc9fde52d583850cf7faafdf7d050d5.tar.gz
PeerTube-e6abf95e9fc9fde52d583850cf7faafdf7d050d5.tar.zst
PeerTube-e6abf95e9fc9fde52d583850cf7faafdf7d050d5.zip
Add redirection on unavailable video due to follow constraints
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/server/index.ts1
-rw-r--r--shared/models/server/server-error-code.enum.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/shared/models/server/index.ts b/shared/models/server/index.ts
index b079bc9a0..f253a3a79 100644
--- a/shared/models/server/index.ts
+++ b/shared/models/server/index.ts
@@ -7,4 +7,5 @@ export * from './emailer.model'
7export * from './job.model' 7export * from './job.model'
8export * from './log-level.type' 8export * from './log-level.type'
9export * from './server-config.model' 9export * from './server-config.model'
10export * from './server-error-code.enum'
10export * from './server-stats.model' 11export * from './server-stats.model'
diff --git a/shared/models/server/server-error-code.enum.ts b/shared/models/server/server-error-code.enum.ts
new file mode 100644
index 000000000..0bfb2c470
--- /dev/null
+++ b/shared/models/server/server-error-code.enum.ts
@@ -0,0 +1,3 @@
1export const enum ServerErrorCode {
2 DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 1
3}