aria2Errors.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. (function () {
  2. 'use strict';
  3. angular.module('ariaNg').constant('aria2Errors', {
  4. //'0': { }, //All downloads were successful.
  5. '1': {
  6. descriptionKey: 'error.unknown'
  7. },
  8. '2': {
  9. descriptionKey: 'error.operation.timeout'
  10. },
  11. '3': {
  12. descriptionKey: 'error.resource.notfound'
  13. },
  14. '4': {
  15. descriptionKey: 'error.resource.notfound.max-file-not-found'
  16. },
  17. '5': {
  18. descriptionKey: 'error.download.aborted.lowest-speed-limit'
  19. },
  20. '6': {
  21. descriptionKey: 'error.network.problem'
  22. },
  23. //'7': { },//If there were unfinished downloads. This error is only reported if all finished downloads were successful and there were unfinished downloads in a queue when aria2 exited by pressing Ctrl-C by an user or sending TERM or INT signal.
  24. '8': {
  25. descriptionKey: 'error.resume.notsupported'
  26. },
  27. '9': {
  28. descriptionKey: 'error.space.notenough'
  29. },
  30. '10': {
  31. descriptionKey: 'error.piece.length.different'
  32. },
  33. '11': {
  34. descriptionKey: 'error.download.sametime'
  35. },
  36. '12': {
  37. descriptionKey: 'error.download.torrent.sametime'
  38. },
  39. '13': {
  40. descriptionKey: 'error.file.exists'
  41. },
  42. '14': {
  43. descriptionKey: 'error.file.rename.failed'
  44. },
  45. '15': {
  46. descriptionKey: 'error.file.open.failed'
  47. },
  48. '16': {
  49. descriptionKey: 'error.file.create.failed'
  50. },
  51. '17': {
  52. descriptionKey: 'error.io.error'
  53. },
  54. '18': {
  55. descriptionKey: 'error.directory.create.failed'
  56. },
  57. '19': {
  58. descriptionKey: 'error.name.resolution.failed'
  59. },
  60. '20': {
  61. descriptionKey: 'error.metalink.file.parse.failed'
  62. },
  63. '21': {
  64. descriptionKey: 'error.ftp.command.failed'
  65. },
  66. '22': {
  67. descriptionKey: 'error.http.response.header.bad'
  68. },
  69. '23': {
  70. descriptionKey: 'error.redirects.toomany'
  71. },
  72. '24': {
  73. descriptionKey: 'error.http.authorization.failed'
  74. },
  75. '25': {
  76. descriptionKey: 'error.bencoded.file.parse.failed'
  77. },
  78. '26': {
  79. descriptionKey: 'error.torrent.file.corrupted'
  80. },
  81. '27': {
  82. descriptionKey: 'error.magnet.uri.bad'
  83. },
  84. '28': {
  85. descriptionKey: 'error.option.bad'
  86. },
  87. '29': {
  88. descriptionKey: 'error.server.overload'
  89. },
  90. '30': {
  91. descriptionKey: 'error.rpc.request.parse.failed'
  92. },
  93. //'31': { }, //Reserved. Not used.
  94. '32': {
  95. descriptionKey: 'error.checksum.failed'
  96. }
  97. });
  98. }());