HTTP variables

$upstream_status variable (HTTP upstream)

Backend attempt status values; can be a list separated by commas/colons, or 502 when no server can be selected. Not necessarily the final client status.

Formal Syntax & Structure

nginx syntaxnginx
$upstream_status

Working Example

Example Snippetnginx
log_format sample '$status $upstream_status';# Illustrative value: 200 502, 200
Nginx Reference