Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

找不到租户时,BFE返回用户定制的返回码 #972

Closed
ohscartao opened this issue Jan 26, 2022 · 2 comments
Closed

找不到租户时,BFE返回用户定制的返回码 #972

ohscartao opened this issue Jan 26, 2022 · 2 comments

Comments

@ohscartao
Copy link

当前一个请求到达BFE后,如果BFE找不到对应的租户,则返回HTTP status code 500。在有的场景下,用户可能希望返回自己定制的返回码,例如:可能要求返回404.

针对找不到租户的场景,希望BFE能支持返回码的定制。

@mileszhang2016
Copy link
Member

Refer to #958

@iyangsj
Copy link
Member

iyangsj commented Mar 21, 2022

@ohscartao
mod_errors 可以按需替换这类异常响应(例如将500响应替换为自定义响应)

@iyangsj iyangsj closed this as completed Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants