SetStatus
SetStatus method
| Method Declaration | Description
|
| Sub SetStatus( status as Integer ) | manually set the HTTP status code
|
This global method is used to manually set the
HTTP status code that will be returned with the page.
If you don't call SetStatus, Yuma will set the HTTP status code to something sensible, usually 200 (which means "OK"). If you set the "Location" header (with
SetHeader), then the default status code will be 302 (indicating a redirect). But you can override the default status code in any case by calling SetStatus with a value from 100 to 1000.