Skip to content

Commit 30d2a1e

Browse files
authored
Fix default for validateStatus
1 parent 94b216f commit 30d2a1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node.js/cds-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ To stay portable across different HTTP clients, it's recommended to only use the
235235
- `baseURL` as defined in [Axios](https://axios-http.com/docs/req_config#baseurl)
236236
- `auth` as defined in [Axios](https://axios-http.com/docs/req_config)
237237
- `headers` as defined in [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Request/headers) and [Axios](https://axios-http.com/docs/req_config#headers)
238-
- `validateStatus` as defined in [Axios](https://axios-http.com/docs/handling_errors) (default: `status < 200 && status >= 300`)
238+
- `validateStatus` as defined in [Axios](https://axios-http.com/docs/handling_errors) (default: `status >= 200 && status < 300`)
239239

240240
In addition, you can use all of the config options understood by the underlying HTTP client, that is, for Fetch API, its [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request) options, and for Axios, its [request config options](https://axios-http.com/docs/req_config) options.
241241

0 commit comments

Comments
 (0)