Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2022-01-04 22:53:42 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2022-01-04 22:53:42 +0300
commit74d7a9e3a0b5c9c8c0bc8a52c75b488c05285cbd (patch)
tree3f275c99c92bc6a4d5560acf6a6df9eecb4259d4 /src/ClassLoader
parente1c6b6afe7bcefb0a8b17d70c72588d6c70f8db9 (diff)
Added precondition failed error
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/ClassLoader')
-rw-r--r--src/ClassLoader/DefaultClassLoader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ClassLoader/DefaultClassLoader.js b/src/ClassLoader/DefaultClassLoader.js
index d749664..00ff4b3 100644
--- a/src/ClassLoader/DefaultClassLoader.js
+++ b/src/ClassLoader/DefaultClassLoader.js
@@ -66,6 +66,7 @@ import InvalidEncryptedTextLength from "../Exception/Encryption/InvalidEncrypted
import HashService from "../Services/HashService";
import Logger from "../Logger/Logger";
import DefectField from "../Model/CustomField/DefectField";
+import PreconditionFailedError from "../Exception/Http/PreconditionFailedError";
export default class DefaultClassLoader extends BasicClassLoader {
@@ -147,6 +148,7 @@ export default class DefaultClassLoader extends BasicClassLoader {
'exception.http.403' : ForbiddenError,
'exception.http.404' : NotFoundError,
'exception.http.405' : MethodNotAllowedError,
+ 'exception.http.412' : PreconditionFailedError,
'exception.http.429' : TooManyRequestsError,
'exception.http.500' : InternalServerError,
'exception.http.502' : BadGatewayError,