WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/status header

Contents

Description

Set HTTP status header.

Usage

<?php status_header$header ?>

Parameters

$header
(integer) (required) HTTP status code
Default: None

Return Values

(null) 
Does not return anything.

Examples

Notes

  • Uses: apply_filters() Calls 'status_header' on status header string, HTTP HTTP code, HTTP code description, and protocol string as separate parameters.

Change Log

Since: 2.0.0

Source File

status_header() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.