Skip to content

Commit 2746d03

Browse files
authored
Set default request statusCode to 200 (#614)
[COLDBOX-1338](https://ortussolutions.atlassian.net/browse/COLDBOX-1338) #resolve RequestContext StatusCode Should Default to 200
1 parent 5d8c656 commit 2746d03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/web/context/RequestContext.cfc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ component serializable="false" accessors="true" {
9393
/**
9494
* The last status code
9595
* This is used mostly for mocking and tracking multi-step responses in case repsonses are committed.
96+
* Defaults to 200 (OK)
9697
*/
9798
property
9899
name ="statusCode"
99100
type ="numeric"
100-
default="0";
101+
default="200";
101102

102103
/**
103104
* The last status text

0 commit comments

Comments
 (0)