{"record":{"id":"5cd683cab1b7f555","repo":"goharbor/harbor","slug":"s-v","errorCode":null,"errorMessage":"%s: %v","messagePattern":"%s: %v","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/common/api/base.go","lineNumber":205,"sourceCode":"\t\tpageSize = maxPageSize\n\t\tlog.Debugf(\"the parameter page_size %d exceeds the max %d, set it to max\", pageSize, maxPageSize)\n\t}\n\n\treturn page, pageSize, nil\n}\n\n// ParseAndHandleError : if the err is an instance of utils/error.Error,\n// return the status code and the detail message contained in err, otherwise\n// return 500\nfunc (b *BaseAPI) ParseAndHandleError(text string, err error) {\n\tif err == nil {\n\t\treturn\n\t}\n\tif e, ok := err.(*commonhttp.Error); ok {\n\t\tb.RenderError(e.Code, fmt.Sprintf(\"%s: %s\", text, e.Message))\n\t\treturn\n\t}\n\tb.SendInternalServerError(fmt.Errorf(\"%s: %v\", text, err))\n}\n\n// SendUnAuthorizedError sends unauthorized error to the client.\nfunc (b *BaseAPI) SendUnAuthorizedError(err error) {\n\tb.RenderError(http.StatusUnauthorized, err.Error())\n}\n\n// SendConflictError sends conflict error to the client.\nfunc (b *BaseAPI) SendConflictError(err error) {\n\tb.RenderError(http.StatusConflict, err.Error())\n}\n\n// SendNotFoundError sends not found error to the client.\nfunc (b *BaseAPI) SendNotFoundError(err error) {\n\tb.RenderError(http.StatusNotFound, err.Error())\n}\n\n// SendBadRequestError sends bad request error to the client.","sourceCodeStart":187,"sourceCodeEnd":223,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/common/api/base.go#L187-L223","documentation":"Error \"%s: %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/common/api/base.go:205 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}