MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getStatusCode

Function getStatusCode

out/cli.cjs:74643–74654  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

74641 output += `
74642 ${source_default.yellow("Suggestion:")} ${formatted.suggestion}
74643`;
74644 }
74645 return output;
74646}
74647
74648// src/utils/engineErrorHandler.ts
74649function getStatusCode(error) {
74650 if (typeof error?.status === "number") {
74651 return error.status;
74652 }
74653 if (axios_default.isAxiosError(error)) {
74654 return error.response?.status ?? null;
74655 }
74656 if (typeof error?.response?.status === "number") {
74657 return error.response.status;

Callers 1

normalizeEngineErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…