// Given an HTTP status code, returns if the operation was considered
// successful.
Given an HTTP status code, returns if the operation was considered
successful.
// Given an HTTP status code returns if the operation was considered // successful .
func statusCodeOK(code int) bool {
	switch code {
	case http.StatusOK:
		fallthrough
	case http.StatusCreated:
		fallthrough
	case http.StatusAccepted:
		fallthrough
	case http.StatusNoContent:
		return true
	default:
		return false
	}
	return false
}
func statusCodeOK ( code int ) bool { switch code { case http . StatusOK : fallthrough case http . StatusCreated : fallthrough case http . StatusAccepted : fallthrough case http . StatusNoContent : return true default : return false } return false }
Given an HTTP status code, returns if the operation was considered
successful.
Given an HTTP status code returns if the operation was considered successful .