diff --git a/tasks/php.js b/tasks/php.js
index <HASH>..<HASH> 100644
--- a/tasks/php.js
+++ b/tasks/php.js
@@ -14,7 +14,7 @@ module.exports = function (grunt) {
 				hostname: hostname,
 				port: port
 			}, function (res) {
-				if ([200, 404, 301].indexOf(res.statusCode) !== -1) {
+				if (['2', '3', '4'].indexOf(res.statusCode.toString()[0]) !== -1) {
 					return cb();
 				}
Accept all <I>, <I>, and <I>-level HTTP response codes as valid.