Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

System Template

env.Status()

Return the current page status.

Syntax

number = rb.page.env.Status()

Parameters

The 'env.Status' method takes no parameters

Results

The 'env.Status' method returns number:

Type/Value Range/Length Description
number   Returns the numeric HTTP status code.

Remarks

This method is only particularly useful in error handling pages (eg a handler for '404' not found pages). The method returns the current status for the page being generated. The initial value for a page is '200', that is no errors. Apache can be configured to redirect to a specific page in the case of an error. When this happens rb.page.env.Status will return the status code. For example consider the configuring Apache to redirect to /errorHandler.rhtm for 404 errors (page not found). This would cause this method to return 404.

Whitebeam release 1.3.36
(loadtime : 59ms)