I'm using this php page:
<?php
header('HTTP/1.1 502 Bad Gateway');
?>
And here's my result:
LT $ siege -g www.joedog.org/502.php
GET /502.php HTTP/1.1
Host: www.joedog.org
Accept: */*
Accept-Encoding: gzip
User-Agent: JoeDog/1.00 [en] (X11; I; Siege 2.70b8)
Connection: close
HTTP/1.1 502 Bad Gateway
Date: Fri, 04 Mar 2011 12:50:05 GMT
Server: CERN/1.0A
X-Powered-By: PHP/5.2.5
Content-Length: 0
Connection: close
Content-Type: text/html; charset=WINDOWS-1251
[done]
LT $ siege -c1 -r1 www.joedog.org/502.php
** SIEGE 2.70b8
** Preparing 1 concurrent users for battle.
The server is now under siege...
HTTP/1.1 502 0.18 secs: 0 bytes ==> /502.php
done.
Transactions: 0 hits
Availability: 0.00 %
Elapsed time: 0.19 secs
Data transferred: 0.00 MB
Response time: 0.00 secs
Transaction rate: 0.00 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 0.93
Successful transactions: 0
Failed transactions: 1
Longest transaction: 0.18
Shortest transaction: 0.00