Skip to content

StatusCode has state - #258

Open
g105b wants to merge 7 commits into
masterfrom
257-status-code-state
Open

g105b wants to merge 7 commits into
masterfrom
257-status-code-state

Conversation

@g105b

@g105b g105b commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

It's now possible for StatusCode to have its own status code set. This is only useful when a framework is using this class.

WebEngine will utilise this by loading the StatusCode class into the Service Loader, allowing developers to get and set the status code via this class, rather than calling global functions like http_status_code.

Closes #257

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 7 complexity · 0 duplication

Metric Results
Complexity 7
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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.

StatusCode class should be able to represent state.

1 participant