Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion middlewares/access_control_middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func DisallowPublicRequests(next echo.HandlerFunc) echo.HandlerFunc {
return func(ctx shared.Context) error {
if shared.IsPublicRequest(ctx) {
slog.Warn("access denied for public request in DisallowPublicRequests middleware")
return echo.NewHTTPError(404, "could not find resource")
return echo.NewHTTPError(401, "this endpoint is not accessible for public requests")
}
return next(ctx)
}
Expand Down
Loading