Contents

cfheader

Description

Generates custom HTTP response headers to return to the client.

Category

Other

Implemented

Usage Syntax

<cfheader  
	[name="String"]
	[value="String"]
	[statusCode="number"]
	[charset="String"]
	[statusText="String"]
 />

[] = Optional attribute

Attributes

Name Type Required Default Description
name String No A name for the header.
value String No A value for the HTTP header. This attribute is used in conjunction with the name attribute.
statusCode number No A number that sets the HTTP status code.
charset String No
statusText String No Text that explains the status code. This attribute is used in conjunction with the statusCode attribute.

Example Usage