Fix incorrect response handling in redirect check

Consider '405 Method Not Allowed' a valid response when checking for a
temporary/permanent redirect.
This is required due to the change to NOBODY in 0c019b44.