File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,7 @@ function $HttpProvider() {
208
208
* }).
209
209
* error(function(data, status, headers, config) {
210
210
* // called asynchronously if an error occurs
211
- * // or server returns response with status
212
- * // code outside of the <200, 400) range
211
+ * // or server returns response with an error status.
213
212
* });
214
213
* </pre>
215
214
*
@@ -218,6 +217,10 @@ function $HttpProvider() {
218
217
* an object representing the response. See the api signature and type info below for more
219
218
* details.
220
219
*
220
+ * A response status code that falls in the [200, 300) range is considered a success status and
221
+ * will result in the success callback being called. Note that if the response is a redirect,
222
+ * XMLHttpRequest will transparently follow it, meaning that the error callback will not be
223
+ * called for such responses.
221
224
*
222
225
* # Shortcut methods
223
226
*
You can’t perform that action at this time.
0 commit comments