From c756bae079e02873f6433582ca14a092fec0db27 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 6 Jun 2021 10:21:06 +0200 Subject: add video upload types, add doc middleware to more routes --- shared/models/server/server-error-code.enum.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'shared') 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,4 +1,15 @@ export const enum ServerErrorCode { + /** + * The simplest form of payload too large: when the file size is over the + * global file size limit + */ + MAX_FILE_SIZE_REACHED = 'max_file_size_reached', + + /** + * The payload is too large for the user quota set + */ + QUOTA_REACHED = 'quota_reached', + /** * Error yielded upon trying to access a video that is not federated, nor can * be. This may be due to: remote videos on instances that are not followed by @@ -6,13 +17,15 @@ export const enum ServerErrorCode { */ DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 'does_not_respect_follow_constraints', + LIVE_NOT_ENABLED = 'live_not_enabled', + LIVE_NOT_ALLOWING_REPLAY = 'live_not_allowing_replay', + LIVE_CONFLICTING_PERMANENT_AND_SAVE_REPLAY = 'live_conflicting_permanent_and_save_replay', /** * Pretty self-explanatory: the set maximum number of simultaneous lives was * reached, and this error is typically there to inform the user trying to * broadcast one. */ MAX_INSTANCE_LIVES_LIMIT_REACHED = 'max_instance_lives_limit_reached', - /** * Pretty self-explanatory: the set maximum number of simultaneous lives FOR * THIS USER was reached, and this error is typically there to inform the user -- cgit v1.2.3