diff options
| author | Per RovegÄrd | 2012-12-31 13:03:49 +0100 |
|---|---|---|
| committer | Pawel Kozlowski | 2013-01-03 20:47:55 +0100 |
| commit | f3188c1d09e192eab6ba07d2a6fa2ba76d2bec22 (patch) | |
| tree | 6be4a33ec7b45ad73325c0df6a0baeba508a3a3d /src/ng/http.js | |
| parent | 2f4967f1008f89780f948cdb50bb13653cac511a (diff) | |
| download | angular.js-f3188c1d09e192eab6ba07d2a6fa2ba76d2bec22.tar.bz2 | |
docs($http): clarify documentation on error status codes
Modify the documentation for $http to correspond to what Angular
considers a success status code.
Closes #1693
Diffstat (limited to 'src/ng/http.js')
| -rw-r--r-- | src/ng/http.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ng/http.js b/src/ng/http.js index 6d4c3875..d61ad89e 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -172,8 +172,7 @@ function $HttpProvider() { * }). * error(function(data, status, headers, config) { * // called asynchronously if an error occurs - * // or server returns response with status - * // code outside of the <200, 400) range + * // or server returns response with an error status. * }); * </pre> * @@ -182,6 +181,10 @@ function $HttpProvider() { * an object representing the response. See the api signature and type info below for more * details. * + * A response status code that falls in the [200, 300) range is considered a success status and + * will result in the success callback being called. Note that if the response is a redirect, + * XMLHttpRequest will transparently follow it, meaning that the error callback will not be + * called for such responses. * * # Shortcut methods * |
