@munlib/common 1.0.136 → 1.0.138
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.
|
@@ -245,11 +245,14 @@ var ErrorController = /** @class */ (function () {
|
|
|
245
245
|
function ErrorController() {
|
|
246
246
|
}
|
|
247
247
|
ErrorController.getGeneralStatus = function (apiStatusCode) {
|
|
248
|
-
return exports.statusCodeMapping[apiStatusCode] || "
|
|
248
|
+
return exports.statusCodeMapping[apiStatusCode] || "error";
|
|
249
249
|
};
|
|
250
250
|
ErrorController.getErrorMessage = function (apiStatusCode) {
|
|
251
251
|
return exports.errorCodes[apiStatusCode] || "Error al procesar la solicitud";
|
|
252
252
|
};
|
|
253
|
+
ErrorController.getErrorCodes = function (apiStatusCode) {
|
|
254
|
+
return exports.errorCodes[apiStatusCode];
|
|
255
|
+
};
|
|
253
256
|
return ErrorController;
|
|
254
257
|
}());
|
|
255
258
|
exports.ErrorController = ErrorController;
|