[GH-ISSUE #3181] http功能默认404错误能否改成403或者503错误 #2552

Closed
opened 2026-05-05 13:38:35 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @befen on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3181

Describe the feature request

http功能默认404错误能否改成403或者503错误

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @befen on GitHub (Nov 23, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3181 ### Describe the feature request http功能默认404错误能否改成403或者503错误 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:38:35 -06:00
Author
Owner

@Becods commented on GitHub (Nov 23, 2022):

da51adc276/pkg/util/vhost/resource.go (L77-L78)

<!-- gh-comment-id:1324995559 --> @Becods commented on GitHub (Nov 23, 2022): https://github.com/fatedier/frp/blob/da51adc27670f495478f50634462954319e4fc14/pkg/util/vhost/resource.go#L77-L78
Author
Owner

@befen commented on GitHub (Nov 23, 2022):

da51adc276/pkg/util/vhost/resource.go (L77-L78)

403和503的Status分别是啥?

<!-- gh-comment-id:1324998496 --> @befen commented on GitHub (Nov 23, 2022): > https://github.com/fatedier/frp/blob/da51adc27670f495478f50634462954319e4fc14/pkg/util/vhost/resource.go#L77-L78 403和503的Status分别是啥?
Author
Owner

@befen commented on GitHub (Nov 23, 2022):

da51adc276/pkg/util/vhost/resource.go (L77-L78)

Status: "Service Unavailable",
StatusCode: 503,

这么写编译完了还是404

<!-- gh-comment-id:1325091265 --> @befen commented on GitHub (Nov 23, 2022): > https://github.com/fatedier/frp/blob/da51adc27670f495478f50634462954319e4fc14/pkg/util/vhost/resource.go#L77-L78 Status: "Service Unavailable", StatusCode: 503, 这么写编译完了还是404
Author
Owner

@github-actions[bot] commented on GitHub (Dec 24, 2022):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1364422607 --> @github-actions[bot] commented on GitHub (Dec 24, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2552
No description provided.