Skip to content
callcount

github.com/goharbor/harbor/src/lib/errors.BadRequestError

third-party

The 4812th most-called third-party function by production calls. Called 124 times across 1 modules; 124 of those run outside tests and generated code.

4% in production calls vs 2026-W37 (119 → 124)

All of github.com/goharbor/harbor/src/lib/errors → Docs on pkg.go.dev ↗

prod calls
124
non-test, non-generated
all calls
124
total callsites
modules
1
distinct callers
in loop
7%
of prod calls
in tests
0%
0 calls
resolved
100%
to a known target

resolution mix

How each call resolves

How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →

  • Package function100%A direct call to an exported package function, resolved by type.

who calls this

Notable callers

Production calls into BadRequestError from notable Go projects. Open one on the map to see what else it hammers.

where it's called

Callsites in the wild

12 representative callsites of 124, prioritizing in-loop and non-test usage. We link to source, never display it.

BadRequestError · 12 of 124 callsites
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    server/middleware/url/parse.go:57

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    server/middleware/url/parse.go:62

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    controller/config/controller.go:185

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    controller/config/controller.go:189

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    server/v2.0/handler/scanexport.go:361

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/securityhub/dao/security.go:372

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/securityhub/dao/security.go:376

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/securityhub/dao/security.go:380

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/securityhub/dao/security.go:384

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    registryctl/api/base.go:39

  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    server/v2.0/handler/schedule.go:48

  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    server/v2.0/handler/member.go:48

top callers

The modules that reach for it

The modules that call BadRequestError most in this snapshot.

  • github.com/goharbor/harbor/src124100%

siblings

More from github.com/goharbor/harbor/src/lib/errors

The other most-called functions in this package. See all →