golang.org/x/pkgsite/internal/frontend.fetchResult.status (field)

39 uses

	golang.org/x/pkgsite/internal/frontend (current package)
		404.go#L86: 	switch fr.status {
		404.go#L114: 		if fr.status == http.StatusNotFound && time.Since(fr.updatedAt) > s.taskIDChangeInterval {
		404.go#L126: 			status: fr.status,
		404.go#L131: 				MessageData: struct{ StatusText string }{http.StatusText(fr.status)},
		404.go#L209: 				status:     vm.Status,
		404.go#L236: 			status:     http.StatusFound,
		404.go#L265: 		status:     vm.Status,
		fetch.go#L124: 	status       int
		fetch.go#L162: 	if fr.status == derrors.ToStatus(derrors.AlternativeModule) {
		fetch.go#L163: 		fr.status = http.StatusNotFound
		fetch.go#L165: 	return fr.status, fr.responseText
		fetch.go#L193: 			log.Debugf(ctx, "initial checkForPath(ctx, db, %q, %q, %q, %d): status=%d, err=%v", fullPath, modulePath, requestedVersion, s.taskIDChangeInterval, fr.status, fr.err)
		fetch.go#L194: 			if !shouldQueue || fr.status != statusNotFoundInVersionMap {
		fetch.go#L203: 				fr.status = http.StatusInternalServerError
		fetch.go#L211: 			if fr.status == http.StatusInternalServerError {
		fetch.go#L214: 			logf(ctx, "fetched %s@%s for %s: status=%d, err=%v; took %.3fs", modulePath, requestedVersion, fullPath, fr.status, fr.err, time.Since(start).Seconds())
		fetch.go#L238: 		switch fr.status {
		fetch.go#L257: 				fr.status = http.StatusNotFound
		fetch.go#L265: 				fr.status = http.StatusInternalServerError
		fetch.go#L278: 			fr.status = http.StatusNotFound
		fetch.go#L312: 			fr.status = http.StatusInternalServerError
		fetch.go#L315: 		fr.status = http.StatusNotFound
		fetch.go#L323: 	fr.status = http.StatusNotFound
		fetch.go#L346: 			fr.status = http.StatusRequestTimeout
		fetch.go#L353: 			if fr.status != statusNotFoundInVersionMap {
		fetch.go#L381: 			fr.status = http.StatusRequestTimeout
		fetch.go#L398: 			status:     derrors.ToStatus(err),
		fetch.go#L402: 			fr.status = statusNotFoundInVersionMap
		fetch.go#L412: 	switch fr.status {
		fetch.go#L430: 			fr.status = statusNotFoundInVersionMap
		fetch.go#L433: 		if fr.status == http.StatusInternalServerError {
		fetch.go#L434: 			fr.err = fmt.Errorf("%q: %v", http.StatusText(fr.status), vm.Error)
		fetch.go#L451: 		if fr.status >= derrors.ToStatus(derrors.ReprocessStatusOK) {
		fetch.go#L452: 			fr.status = statusNotFoundInVersionMap
		fetch.go#L456: 		if fr.status >= 400 {
		fetch.go#L457: 			fr.status = http.StatusNotFound
		fetch.go#L472: 			fr.status = http.StatusNotFound
		fetch.go#L476: 		fr.status = http.StatusInternalServerError
		fetch.go#L481: 	fr.status = http.StatusOK