code: func (r Result) WasCreated(wasCreated *bool) Result {
  	*wasCreated = r.statusCode == http.StatusCreated
  	return r
  }
docs: // WasCreated updates the provided bool pointer to whether the server returned
  // 201 created or a different response.