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

Method ok

lib.esm/utils/fetch.js:809–811  ·  view source on GitHub ↗

* Returns true if this response was a success statusCode.

()

Source from the content-addressed store, hash-verified

807 * Returns true if this response was a success statusCode.
808 */
809 ok() {
810 return (this.#error.message === "" && this.statusCode >= 200 && this.statusCode < 300);
811 }
812 /**
813 * Throws a ``SERVER_ERROR`` if this response is not ok.
814 */

Callers 1

assertOkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected