You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return gjson.Result{}, fmt.Errorf("too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time")
71
80
}
72
81
82
+
// Check for other error status codes
83
+
ifresp.StatusCode!=200 {
84
+
return gjson.Result{}, fmt.Errorf("request failed with status code: %d", resp.StatusCode)
0 commit comments