diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index 63b6ff2b1..6e38bc152 100644 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -503,7 +503,7 @@ $.api = $.fn.api = function(parameters) { module.request.resolveWith(context, [response, xhr]); } else { - module.request.rejectWith(context, [xhr, 'invalid']); + module.request.rejectWith(context, [xhr, 'invalid', response]); } }, timeLeft); },