MCPcopy Index your code
hub / github.com/TryCatchLearn/Overflow / getFallbackMessage

Function getFallbackMessage

webapp/src/lib/fetchClient.ts:71–78  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

69}
70
71function getFallbackMessage(status: number): string {
72 switch (status) {
73 case 400: return 'Bad request. Please check your input.';
74 case 403: return 'You do not have permission to access this resource.';
75 case 500: return 'Server error. Please try again later.';
76 default: return 'An unexpected error occurred.';
77 }
78}

Callers 1

fetchClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…