Skip to content

exp/api: Bubble up status code from writeResponse #1823

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

saswatamcode
Copy link
Member

Bubble up the write response code instead of hard-coding it to 204. The write response struct by default uses 204, but many rw 1.0 implementations in the wild will be using 2xx. This allows it to be flexible.

cc: @bwplotka

@bwplotka bwplotka merged commit b0ace3d into prometheus:main Jun 25, 2025
8 checks passed
This was referenced Jul 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants