Mark ResponseError as NonRetriable()
ResponseError types are returned from failed API calls, e.g. the caller
provided invalid inputs.  Since these errors are not transient they
should be marked as NonRetriable() so customers can test for this.
@@ -36,3 +36,8 @@ func (e *ResponseError) Unwrap() error {
func (e *ResponseError) RawResponse() *http.Response {
return e.resp
}
+
+// NonRetriable indicates this error is non-transient.
+func (e *ResponseError) NonRetriable() {
+ // marker method
+}
