diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-06-06 10:21:06 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2021-06-06 10:21:06 +0200 |
commit | c756bae079e02873f6433582ca14a092fec0db27 (patch) | |
tree | 2b24e065144fdb11b8b1ef58ef3157530bd6b2d1 /shared | |
parent | fc21ef5c62d845576a916414468b3a57370a57b2 (diff) | |
download | PeerTube-c756bae079e02873f6433582ca14a092fec0db27.tar.gz PeerTube-c756bae079e02873f6433582ca14a092fec0db27.tar.zst PeerTube-c756bae079e02873f6433582ca14a092fec0db27.zip |
add video upload types, add doc middleware to more routes
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/server/server-error-code.enum.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/shared/models/server/server-error-code.enum.ts b/shared/models/server/server-error-code.enum.ts index 2795fa569..115421d4d 100644 --- a/shared/models/server/server-error-code.enum.ts +++ b/shared/models/server/server-error-code.enum.ts | |||
@@ -1,18 +1,31 @@ | |||
1 | export const enum ServerErrorCode { | 1 | export const enum ServerErrorCode { |
2 | /** | 2 | /** |
3 | * The simplest form of payload too large: when the file size is over the | ||
4 | * global file size limit | ||
5 | */ | ||
6 | MAX_FILE_SIZE_REACHED = 'max_file_size_reached', | ||
7 | |||
8 | /** | ||
9 | * The payload is too large for the user quota set | ||
10 | */ | ||
11 | QUOTA_REACHED = 'quota_reached', | ||
12 | |||
13 | /** | ||
3 | * Error yielded upon trying to access a video that is not federated, nor can | 14 | * Error yielded upon trying to access a video that is not federated, nor can |
4 | * be. This may be due to: remote videos on instances that are not followed by | 15 | * be. This may be due to: remote videos on instances that are not followed by |
5 | * yours, and with your instance disallowing unknown instances being accessed. | 16 | * yours, and with your instance disallowing unknown instances being accessed. |
6 | */ | 17 | */ |
7 | DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 'does_not_respect_follow_constraints', | 18 | DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 'does_not_respect_follow_constraints', |
8 | 19 | ||
20 | LIVE_NOT_ENABLED = 'live_not_enabled', | ||
21 | LIVE_NOT_ALLOWING_REPLAY = 'live_not_allowing_replay', | ||
22 | LIVE_CONFLICTING_PERMANENT_AND_SAVE_REPLAY = 'live_conflicting_permanent_and_save_replay', | ||
9 | /** | 23 | /** |
10 | * Pretty self-explanatory: the set maximum number of simultaneous lives was | 24 | * Pretty self-explanatory: the set maximum number of simultaneous lives was |
11 | * reached, and this error is typically there to inform the user trying to | 25 | * reached, and this error is typically there to inform the user trying to |
12 | * broadcast one. | 26 | * broadcast one. |
13 | */ | 27 | */ |
14 | MAX_INSTANCE_LIVES_LIMIT_REACHED = 'max_instance_lives_limit_reached', | 28 | MAX_INSTANCE_LIVES_LIMIT_REACHED = 'max_instance_lives_limit_reached', |
15 | |||
16 | /** | 29 | /** |
17 | * Pretty self-explanatory: the set maximum number of simultaneous lives FOR | 30 | * Pretty self-explanatory: the set maximum number of simultaneous lives FOR |
18 | * THIS USER was reached, and this error is typically there to inform the user | 31 | * THIS USER was reached, and this error is typically there to inform the user |