Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenPipe/OpenPipe
/ trpcCodeFromHttpStatus
Function
trpcCodeFromHttpStatus
app/src/server/utils/trpcStatusCodes.ts:28–30 ·
view source on GitHub ↗
(httpStatus = 500)
Source
from the content-addressed store, hash-verified
26
};
27
28
export
const
trpcCodeFromHttpStatus = (httpStatus = 500) => {
29
return
TRPC_HTTP_STATUS_ERROR_CODE[httpStatus] ??
"INTERNAL_SERVER_ERROR"
;
30
};
Callers
2
createChatCompletion.procedure.ts
File · 0.90
extractErrorDetails
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected