Skip to content

feat: use StatusCode instead of numbers in json-api impl example #438

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 4 commits into from
Apr 24, 2025

Conversation

peterpeterparker
Copy link
Member

Motivation

When I copied the code from the json-api example, I noticed that numbers were hardcoded for the status codes in the API response implementation. It's a bit opinionated, but since the example's codebase already uses http::StatusCode, I figured it made sense to do the same there as well.

@peterpeterparker peterpeterparker requested a review from a team as a code owner April 22, 2025 13:17
@raymondk
Copy link
Contributor

This will need to be rebased after #439 is merged to get all the tests to pass...

@nathanosdev nathanosdev enabled auto-merge (squash) April 24, 2025 11:17
@nathanosdev nathanosdev merged commit d0bc921 into dfinity:main Apr 24, 2025
12 checks passed
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.

3 participants