Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
StatusCode property
Holds status code returned to the client.
Type
StatusCodes enumerationSyntax
- Basic
object.StatusCode [= value]
The StatusCode(object,value) syntax has these parts:
The StatusCode(object,value) syntax has these parts:
object | An expression evaluating to an object of type WebResponse |
value | StatusCodes enumeration |
Remarks
StatusCode property is on of the most important properties in your Response. It defines result of the request - if it was successful 200 (OK) which means that client will receive response correctly, or the error occurred.Most typical error to return is 404 (Not found) which is returned when client tries to access page that doesn't exist on your server.
But, you are free to return any of these in above table, or even new ones (just make sure client understands your response status code). Setting this property depends only on your choice and decision. However, if you set Delivery = Automatic, then wodWebServer will try to access requested resource before RequestDone event is fired, and will return (200 OK) if resource is found, or (404 Not found) if resource doesn't exist on your system.
When this property is changed, StatusText and StatusLine properties are updated accordingly.