Skip to content

Set default request statusCode to 200#614

Merged
lmajano merged 1 commit into
ColdBox:developmentfrom
homestar9:hotfixes/fix-default-statuscode
Jul 2, 2025
Merged

Set default request statusCode to 200#614
lmajano merged 1 commit into
ColdBox:developmentfrom
homestar9:hotfixes/fix-default-statuscode

Conversation

@homestar9
Copy link
Copy Markdown
Contributor

Matches Router.cfc behavior and assume default statusCode of 200.

Description

Router handles the default status code by assuming it is 200 unless explicitly set otherwise. The RequestContext and Router should be consistent in their default assumptions. Additionally, a statusCode of 0 isn't valid in the HTML spec anyway.

Jira Issues

https://ortussolutions.atlassian.net/browse/COLDBOX-1338

Type of change

Please delete options that are not relevant.

  • [x ] Bug Fix
  • Improvement
  • New Feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Matches behavior of Router.cfc
@lmajano lmajano merged commit 2746d03 into ColdBox:development Jul 2, 2025
8 of 10 checks passed
@homestar9 homestar9 deleted the hotfixes/fix-default-statuscode branch July 5, 2025 15:47
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