MCPcopy 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
36function selectErrorCode(error) {
37 if (error && error.response && error.response.status) {
38 return error.response.status;
39 }
40
41 return 500;
42}
43
44export default class Errors {
45 static handle(error) {

Callers 2

handleMethod · 0.85
errorCodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected