Replace magic numbers with http.StatusXXX constants.