dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

update TSDoc to reflect the actual defaults for HttpClient ValidateStatus

Open schmod opened this issue 3 years ago • 0 comments

The behavior noted in #1563 is not actually reflected in dd-trace's TSDoc comments.

The documented default states that any status-code over 400 will be treated as an error. However, the actual implementation considers HTTP 500 (and higher) statuses to be a success for HTTP client requests.

schmod avatar Aug 26 '22 18:08 schmod