{"record":{"id":"6dd557d51116633d","repo":"shadow1ng/fscan","slug":"unknown-status-code-d","errorCode":null,"errorMessage":"unknown_status_code: %d","messagePattern":"unknown_status_code: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/services/neo4j.go","lineNumber":119,"sourceCode":"\t\t\tSuccess:   true,\n\t\t\tConn:      &neo4jConnWrapper{},\n\t\t\tErrorType: ErrorTypeUnknown,\n\t\t\tError:     nil,\n\t\t}\n\t}\n\n\tif resp.StatusCode == 401 || resp.StatusCode == 403 {\n\t\treturn &AuthResult{\n\t\t\tSuccess:   false,\n\t\t\tErrorType: ErrorTypeAuth,\n\t\t\tError:     fmt.Errorf(i18n.GetText(\"service_auth_failed\")+\": %d\", resp.StatusCode),\n\t\t}\n\t}\n\n\treturn &AuthResult{\n\t\tSuccess:   false,\n\t\tErrorType: ErrorTypeUnknown,\n\t\tError:     fmt.Errorf(i18n.GetText(\"unknown_status_code\")+\": %d\", resp.StatusCode),\n\t}\n}\n\n// neo4jConnWrapper Neo4j连接包装器\ntype neo4jConnWrapper struct{}\n\nfunc (w *neo4jConnWrapper) Close() error {\n\treturn nil\n}\n\n// classifyNeo4jErrorType Neo4j错误分类\nfunc classifyNeo4jErrorType(err error) ErrorType {\n\tif err == nil {\n\t\treturn ErrorTypeUnknown\n\t}\n\n\tneo4jAuthErrors := []string{\n\t\t\"authentication failed\",","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/shadow1ng/fscan/blob/95cc12e753bf43de7004e5aef42a9ffba3934303/plugins/services/neo4j.go#L101-L137","documentation":"Guard in doNeo4jAuth: the Neo4j HTTP API returned a status code that is neither 200 (auth OK) nor 401/403 (auth failed), e.g. 5xx or a redirect. The outcome is classified as unknown because the code does not map to a credential verdict.","triggerScenarios":"Thrown at plugins/services/neo4j.go:119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the Neo4j HTTP endpoint is up and not behind a gateway returning errors","Verify the target URL points to the Neo4j REST API rather than another service","Retry transient 5xx responses with backoff"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95cc12e753bf43de7004e5aef42a9ffba3934303","analyzedAt":"2026-09-06T17:07:30.094Z","contentChangedAt":"2026-09-06T17:07:30.094Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}