getEffectiveStatusCode() — fiber Function Reference
Architecture documentation for the getEffectiveStatusCode() function in limiter.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 6251efec_b4b5_9664_674e_dd0b8ea5550a["getEffectiveStatusCode()"] c6253bbf_a478_e481_4b02_a86f58ccf743["limiter.go"] 6251efec_b4b5_9664_674e_dd0b8ea5550a -->|defined in| c6253bbf_a478_e481_4b02_a86f58ccf743 style 6251efec_b4b5_9664_674e_dd0b8ea5550a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/limiter/limiter.go lines 32–43
func getEffectiveStatusCode(c fiber.Ctx, err error) int {
// If there's an error and it's a *fiber.Error, use its status code
if err != nil {
var fiberErr *fiber.Error
if errors.As(err, &fiberErr) {
return fiberErr.Code
}
}
// Otherwise, use the response status code
return c.Response().StatusCode()
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getEffectiveStatusCode() do?
getEffectiveStatusCode() is a function in the fiber codebase, defined in middleware/limiter/limiter.go.
Where is getEffectiveStatusCode() defined?
getEffectiveStatusCode() is defined in middleware/limiter/limiter.go at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free