MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / ok

Method ok

lib.commonjs/utils/fetch.js:814–816  ·  view source on GitHub ↗

* Returns true if this response was a success statusCode.

()

Source from the content-addressed store, hash-verified

812 * Returns true if this response was a success statusCode.
813 */
814 ok() {
815 return (this.#error.message === "" && this.statusCode >= 200 && this.statusCode < 300);
816 }
817 /**
818 * Throws a ``SERVER_ERROR`` if this response is not ok.
819 */

Callers 15

assertOkMethod · 0.95
forEachFunction · 0.45
assertObjFunction · 0.45
equalFunction · 0.45
test-abi.jsFile · 0.45
testFunction · 0.45
runTestFunction · 0.45

Calls

no outgoing calls

Tested by 1

testFunction · 0.36