Index: wp-app.php
===================================================================
--- wp-app.php	(revision 18047)
+++ wp-app.php	(working copy)
@@ -1242,7 +1242,6 @@
 	 */
 	function length_required() {
 		log_app('Status','411: Length Required');
-		header("HTTP/1.1 411 Length Required");
 		header('Content-Type: text/plain');
 		status_header('411');
 		exit;
@@ -1255,8 +1254,8 @@
 	 */
 	function invalid_media() {
 		log_app('Status','415: Unsupported Media Type');
-		header("HTTP/1.1 415 Unsupported Media Type");
 		header('Content-Type: text/plain');
+		status_header('415');
 		exit;
 	}
 
@@ -1319,9 +1318,8 @@
 </html>
 
 EOD;
-		header('HTTP/1.1 302 Moved');
 		header('Content-Type: text/html');
-		header('Location: ' . $url);
+		wp_redirect($url);
 		echo $content;
 		exit;
 
@@ -1377,8 +1375,7 @@
 		log_app('Status','401: Auth Required');
 		nocache_headers();
 		header('WWW-Authenticate: Basic realm="WordPress Atom Protocol"');
-		header("HTTP/1.1 401 $msg");
-		header('Status: 401 ' . $msg);
+		status_header('401');
 		header('Content-Type: text/html');
 		$content = <<<EOD
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
