Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/linuxfoundation/crowd.dev
/ selectErrorCode
Function
selectErrorCode
frontend/src/shared/error/errors.js:36–42 ·
view source on GitHub ↗
(error)
Source
from the content-addressed store, hash-verified
34
}
35
36
function
selectErrorCode(error) {
37
if
(error && error.response && error.response.status) {
38
return
error.response.status;
39
}
40
41
return
500;
42
}
43
44
export
default
class
Errors {
45
static handle(error) {
Callers
2
handle
Method · 0.85
errorCode
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected