osl-base-extended 1.1.62 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -297,7 +297,7 @@ class Httpbase {
|
|
|
297
297
|
mapError(error) {
|
|
298
298
|
switch (error.status) {
|
|
299
299
|
case 0: return 'Connection Error! Please Contact Administration';
|
|
300
|
-
case 400: return error.error?.errors ? this.flatObject(error.error?.errors) : error.error?.message || 'Bad Request';
|
|
300
|
+
case 400: return error.error?.errors ? this.flatObject(error.error?.errors) : error.error?.error || error.error?.message || 'Bad Request';
|
|
301
301
|
case 401: return 'Unauthorized Access';
|
|
302
302
|
case 403: return "You don't have rights to perform this action";
|
|
303
303
|
case 404: return 'Resource not found';
|