Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
47
const
isOk = (status, validate) => (validate ? validate(status) : status >= 200 && status < 300);
48
49
const
wrapNetworkError = (error) => {
50
if
(error.name ===
'TimeoutError'
|| error.name ===
'AbortError'
) {
Callers
1
send
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected