Skip to content

Commit bc49510

Browse files
committed
Updating README
1 parent 2ce5aa7 commit bc49510

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ The response for a request contains the following information.
200200

201201
// `status` is the HTTP status code from the server response
202202
status: 200,
203+
204+
// `statusText` is the HTTP status message from the server response
205+
status: 'OK',
203206

204207
// `headers` the headers that the server responded with
205208
headers: {},
@@ -216,6 +219,7 @@ axios.get('/user/12345')
216219
.then(function(response) {
217220
console.log(response.data);
218221
console.log(response.status);
222+
console.log(response.statusText);
219223
console.log(response.headers);
220224
console.log(response.config);
221225
});

0 commit comments

Comments
 (0)