header("HTTP/1.0 400 Bad request");
doesn't work while
header('Location: http://www.example.com/');
works fine. What might be the problem?
Try:
header("HTTP/1.0 400 Bad Request",true);
http://uk.php.net/header ... note the second parameter.