According to rfc2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) value of Retry-After should either be a date or integer in seconds.
time.Duration.Seconds() returns float64 thats why I had to convert it to int64. http://golang.org/pkg/time/#Duration.Seconds