diff --git a/amazon_transcribe.go b/amazon_transcribe.go index a14c804..ce61cbc 100644 --- a/amazon_transcribe.go +++ b/amazon_transcribe.go @@ -101,7 +101,7 @@ func (at *AmazonTranscribe) Start(ctx context.Context, r io.Reader) (*transcribe message := reqErr.Message() var retry bool - if code == 429 { + if code == http.StatusTooManyRequests { retry = true }