Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3dugc/3D-Model-Optimizer
/ getHttpStatusForError
Function
getHttpStatusForError
src/models/error.ts:258–260 ·
view source on GitHub ↗
(code: ErrorCode)
Source
from the content-addressed store, hash-verified
256
* @returns HTTP status code
257
*/
258
export
function
getHttpStatusForError(code: ErrorCode): number {
259
return
ERROR_HTTP_STATUS[code] || 500;
260
}
261
262
/**
263
* Type guard to check
if
a response is an ErrorResponse.
Callers
1
getHttpStatus
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected