MCPcopy
hub / github.com/lissy93/web-check / isOk

Function isOk

api/_common/http.js:47–47  ·  view source on GitHub ↗
(status, validate)

Source from the content-addressed store, hash-verified

45};
46
47const isOk = (status, validate) => (validate ? validate(status) : status >= 200 && status < 300);
48
49const wrapNetworkError = (error) => {
50 if (error.name === 'TimeoutError' || error.name === 'AbortError') {

Callers 1

sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected