errors.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "_comment": "Error messages for English",
  3. "REQUIRED_FIELD": "{field} is required",
  4. "USER_NAME_REQUIRED": "User name is required",
  5. "API_KEY_REQUIRED": "API key is required",
  6. "PROVIDER_NAME_REQUIRED": "Provider name is required",
  7. "PROVIDER_URL_REQUIRED": "Provider URL is required",
  8. "MIN_LENGTH": "{field} must be at least {min} characters",
  9. "MAX_LENGTH": "{field} must not exceed {max} characters",
  10. "INVALID_EMAIL": "Please enter a valid email address",
  11. "INVALID_URL": "Please enter a valid URL",
  12. "MIN_VALUE": "{field} must be at least {min}",
  13. "MAX_VALUE": "{field} must not exceed {max}",
  14. "MUST_BE_INTEGER": "{field} must be an integer",
  15. "MUST_BE_POSITIVE": "{field} must be positive",
  16. "INVALID_TYPE": "{field} has an invalid type",
  17. "INVALID_FORMAT": "{field} has an invalid format",
  18. "DUPLICATE_NAME": "Name '{name}' already exists",
  19. "INVALID_RANGE": "{field} must be between {min} and {max}",
  20. "EMPTY_UPDATE": "No fields to update",
  21. "UNAUTHORIZED": "Unauthorized, please log in",
  22. "INVALID_CREDENTIALS": "Invalid username or password",
  23. "SESSION_EXPIRED": "Session has expired, please log in again",
  24. "PERMISSION_DENIED": "Permission denied",
  25. "TOKEN_REQUIRED": "Authentication token required",
  26. "INVALID_TOKEN": "Invalid authentication token",
  27. "INTERNAL_ERROR": "Internal server error, please try again later",
  28. "DATABASE_ERROR": "Database error",
  29. "NOT_FOUND": "Resource not found",
  30. "OPERATION_FAILED": "Operation failed",
  31. "CREATE_FAILED": "Failed to create, please try again",
  32. "UPDATE_FAILED": "Failed to update, please try again",
  33. "DELETE_FAILED": "Failed to delete, please try again",
  34. "CONNECTION_FAILED": "Connection failed",
  35. "TIMEOUT": "Request timeout",
  36. "NETWORK_ERROR": "Network error",
  37. "QUOTA_EXCEEDED": "Quota exceeded",
  38. "BATCH_SIZE_EXCEEDED": "Batch operation cannot exceed {max} items",
  39. "RATE_LIMIT_EXCEEDED": "Too many requests, please try again later",
  40. "RESOURCE_BUSY": "Resource is currently in use",
  41. "INVALID_STATE": "Operation not allowed in current state",
  42. "CONFLICT": "Operation conflict",
  43. "RATE_LIMIT_RPM_EXCEEDED": "Rate limit exceeded: {current} requests per minute (limit: {limit}). Resets at {resetTime}",
  44. "RATE_LIMIT_5H_EXCEEDED": "5-hour cost limit exceeded: ${current} USD (limit: ${limit} USD). Resets at {resetTime}",
  45. "RATE_LIMIT_5H_ROLLING_EXCEEDED": "5-hour rolling window cost limit exceeded: ${current} USD (limit: ${limit} USD). Usage gradually expires over the past 5 hours",
  46. "RATE_LIMIT_WEEKLY_EXCEEDED": "Weekly cost limit exceeded: ${current} USD (limit: ${limit} USD). Resets at {resetTime}",
  47. "RATE_LIMIT_MONTHLY_EXCEEDED": "Monthly cost limit exceeded: ${current} USD (limit: ${limit} USD). Resets at {resetTime}",
  48. "RATE_LIMIT_TOTAL_EXCEEDED": "Total spending limit exceeded: ${current} USD (limit: ${limit} USD)",
  49. "RATE_LIMIT_CONCURRENT_SESSIONS_EXCEEDED": "Concurrent sessions limit exceeded: {current} sessions (limit: {limit}). Please wait for active sessions to complete",
  50. "RATE_LIMIT_DAILY_QUOTA_EXCEEDED": "Daily quota exceeded: ${current} USD (limit: ${limit} USD). Resets at {resetTime}",
  51. "RATE_LIMIT_DAILY_ROLLING_EXCEEDED": "24-hour rolling window cost limit exceeded: ${current} USD (limit: ${limit} USD). Usage gradually expires over the past 24 hours",
  52. "USER_NOT_FOUND": "User not found",
  53. "USER_CANNOT_MODIFY_SENSITIVE_FIELDS": "Regular users cannot modify quota limits and provider groups",
  54. "CREATE_USER_FAILED": "Failed to create user, please try again later",
  55. "UPDATE_USER_FAILED": "Failed to update user, please try again later",
  56. "DELETE_USER_FAILED": "Failed to delete user, please try again later",
  57. "GET_USER_QUOTA_FAILED": "Failed to get user quota information",
  58. "EXPIRES_AT_FIELD": "Expiration date",
  59. "EXPIRES_AT_MUST_BE_FUTURE": "Expiration date must be in the future",
  60. "EXPIRES_AT_TOO_FAR": "Expiration date cannot exceed 10 years",
  61. "CANNOT_DISABLE_SELF": "Cannot disable your own account",
  62. "KEY_NOT_FOUND": "Key not found",
  63. "CREATE_KEY_FAILED": "Failed to create key, please try again later",
  64. "UPDATE_KEY_FAILED": "Failed to update key, please try again later",
  65. "DELETE_KEY_FAILED": "Failed to delete key, please try again later",
  66. "CANNOT_DISABLE_LAST_KEY": "Cannot disable the last active key. Users must have at least one enabled key",
  67. "KEY_LIMIT_5H_EXCEEDS_USER_LIMIT": "Key 5-hour limit ({keyLimit}) cannot exceed user limit ({userLimit})",
  68. "KEY_LIMIT_DAILY_EXCEEDS_USER_LIMIT": "Key daily limit ({keyLimit}) cannot exceed user limit ({userLimit})",
  69. "KEY_LIMIT_WEEKLY_EXCEEDS_USER_LIMIT": "Key weekly limit ({keyLimit}) cannot exceed user limit ({userLimit})",
  70. "KEY_LIMIT_MONTHLY_EXCEEDS_USER_LIMIT": "Key monthly limit ({keyLimit}) cannot exceed user limit ({userLimit})",
  71. "KEY_LIMIT_TOTAL_EXCEEDS_USER_LIMIT": "Key total limit ({keyLimit}) cannot exceed user limit ({userLimit})",
  72. "KEY_LIMIT_CONCURRENT_EXCEEDS_USER_LIMIT": "Key concurrent session limit ({keyLimit}) cannot exceed user limit ({userLimit})",
  73. "NO_DEFAULT_GROUP_PERMISSION": "No permission to use default group. You don't have a Key with default group",
  74. "NO_GROUP_PERMISSION": "No permission to use the following groups: {groups}"
  75. }