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

Return HTTP 400 for disabled features #5527

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

jander-msft
Copy link
Member

@jander-msft jander-msft commented Oct 11, 2023

Summary

Instead of returning HTTP 404 for routes that correspond to disabled feature, return HTTP 400 with a detail message:

curl -k https://localhost:52323/stacks
{"status":400,"detail":"The Call Stacks feature is not enabled."}
Release Notes Entry

Disabled features with HTTP routes will return HTTP 400

@jander-msft jander-msft requested a review from a team as a code owner October 11, 2023 22:43
@ghost ghost added the needs-review label Oct 11, 2023
@jander-msft jander-msft added the update-release-notes Pull requests that should be mentioned in the release notes label Oct 11, 2023
@ghost ghost removed the needs-review label Oct 11, 2023
wiktork
wiktork previously approved these changes Oct 12, 2023
@ghost ghost removed the needs-review label Oct 12, 2023
@jander-msft jander-msft merged commit bb6e92b into dotnet:main Oct 13, 2023
@jander-msft jander-msft deleted the disabled-features-http-400 branch October 13, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-release-notes Pull requests that should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants