MCPcopy Index your code
hub / github.com/coder/code-server / errorHasStatusCode

Function errorHasStatusCode

src/node/routes/errors.ts:20–22  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

18
19/** Error is network related. */
20export const errorHasStatusCode = (error: any): error is ErrorWithStatusCode => {
21 return error && "statusCode" in error
22}
23
24/** Error originates from file system. */
25export const errorHasCode = (error: any): error is ErrorWithCode => {

Callers 2

errorHandlerFunction · 0.85
wsErrorHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected