RDW00007: Status code out of range
Severity: Error · Family: RDW (RDCore.Web) · Raised by: StatusCodeOutOfRangeAnalyzer
A call of RDWeb.Results.Status gives a code that is not an HTTP status code. Status takes a code from 100 to 599 and raises error 5 for any other,
so a request that reaches the call answers 500 Internal Server Error instead of the status the action means.
It is reported at the code when the code is a number written in the call, and the call is written Results.Status or RDWeb.Results.Status.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| A digit too many or too few. | Set State = RDWeb.Results.Status(4040, "No order 7.") |
Write the three-digit code: 404. |
| A number that is not a status. | Set State = Results.Status(0), Results.Status(code:=600) |
Give a code from 100 to 599, such as 200 for success and 500 for a server error. |
See also
- 5.4 Results
- RFC 9110 §15: Status Codes