<p>Declared in "<aclass="reference external"href="../include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>"</p>
<tableborder="1"class="docutils">
<colgroup>
<colwidth="33%"/>
<colwidth="6%"/>
<colwidth="61%"/>
</colgroup>
<theadvalign="bottom">
<tr><thclass="head">name</th>
<thclass="head">value</th>
<thclass="head">description</th>
</tr>
</thead>
<tbodyvalign="top">
<tr><td>no_error</td>
<td>0</td>
<td>Not an error</td>
</tr>
<tr><td>file_collision</td>
<td>1</td>
<td>Two torrents has files which end up overwriting each other</td>
</tr>
<tr><td>failed_hash_check</td>
<td>2</td>
<td>A piece did not match its piece hash</td>
</tr>
<tr><td>torrent_is_no_dict</td>
<td>3</td>
<td>The .torrent file does not contain a bencoded dictionary at
its top level</td>
</tr>
<tr><td>torrent_missing_info</td>
<td>4</td>
<td>The .torrent file does not have an <ttclass="docutils literal">info</tt> dictionary</td>
</tr>
<tr><td>torrent_info_no_dict</td>
<td>5</td>
<td>The .torrent file's <ttclass="docutils literal">info</tt><aclass="reference external"href="reference-Bencoding.html#entry">entry</a> is not a dictionary</td>
</tr>
<tr><td>torrent_missing_piece_length</td>
<td>6</td>
<td>The .torrent file does not have a <ttclass="docutils literal">piece length</tt><aclass="reference external"href="reference-Bencoding.html#entry">entry</a></td>
</tr>
<tr><td>torrent_missing_name</td>
<td>7</td>
<td>The .torrent file does not have a <ttclass="docutils literal">name</tt><aclass="reference external"href="reference-Bencoding.html#entry">entry</a></td>
</tr>
<tr><td>torrent_invalid_name</td>
<td>8</td>
<td>The .torrent file's name <aclass="reference external"href="reference-Bencoding.html#entry">entry</a> is invalid</td>
</tr>
<tr><td>torrent_invalid_length</td>
<td>9</td>
<td>The length of a file, or of the whole .torrent file is invalid.
Either negative or not an integer</td>
</tr>
<tr><td>torrent_file_parse_failed</td>
<td>10</td>
<td>Failed to parse a file <aclass="reference external"href="reference-Bencoding.html#entry">entry</a> in the .torrent</td>
</tr>
<tr><td>torrent_missing_pieces</td>
<td>11</td>
<td>The <ttclass="docutils literal">pieces</tt> field is missing or invalid in the .torrent file</td>
</tr>
<tr><td>torrent_invalid_hashes</td>
<td>12</td>
<td>The <ttclass="docutils literal">pieces</tt> string has incorrect length</td>
</tr>
<tr><td>too_many_pieces_in_torrent</td>
<td>13</td>
<td>The .torrent file has more pieces than is supported by libtorrent</td>
</tr>
<tr><td>invalid_swarm_metadata</td>
<td>14</td>
<td>The metadata (.torrent file) that was received from the swarm
matched the info-hash, but failed to be parsed</td>
</tr>
<tr><td>invalid_bencoding</td>
<td>15</td>
<td>The file or buffer is not correctly bencoded</td>
</tr>
<tr><td>no_files_in_torrent</td>
<td>16</td>
<td>The .torrent file does not contain any files</td>
</tr>
<tr><td>invalid_escaped_string</td>
<td>17</td>
<td>The string was not properly url-encoded as expected</td>
</tr>
<tr><td>session_is_closing</td>
<td>18</td>
<td>Operation is not permitted since the <aclass="reference external"href="reference-Session.html#session">session</a> is shutting down</td>
</tr>
<tr><td>duplicate_torrent</td>
<td>19</td>
<td>There's already a torrent with that info-hash added to the
session</td>
</tr>
<tr><td>invalid_torrent_handle</td>
<td>20</td>
<td>The supplied <aclass="reference external"href="reference-Core.html#torrent_handle">torrent_handle</a> is not referring to a valid torrent</td>
</tr>
<tr><td>invalid_entry_type</td>
<td>21</td>
<td>The type requested from the <aclass="reference external"href="reference-Bencoding.html#entry">entry</a> did not match its type</td>
</tr>
<tr><td>missing_info_hash_in_uri</td>
<td>22</td>
<td>The specified URI does not contain a valid info-hash</td>
</tr>
<tr><td>file_too_short</td>
<td>23</td>
<td>One of the files in the torrent was unexpectadly small. This
might be caused by files being changed by an external process</td>
</tr>
<tr><td>unsupported_url_protocol</td>
<td>24</td>
<td>The URL used an unknown protocol. Currently <ttclass="docutils literal">http</tt> and
<ttclass="docutils literal">https</tt> (if built with openssl support) are recognized. For
trackers <ttclass="docutils literal">udp</tt> is recognized as well.</td>
</tr>
<tr><td>url_parse_error</td>
<td>25</td>
<td>The URL did not conform to URL syntax and failed to be parsed</td>
</tr>
<tr><td>peer_sent_empty_piece</td>
<td>26</td>
<td>The peer sent a 'piece' message of length 0</td>
</tr>
<tr><td>parse_failed</td>
<td>27</td>
<td>A bencoded structure was currupt and failed to be parsed</td>
</tr>
<tr><td>invalid_file_tag</td>
<td>28</td>
<td>The fast resume file was missing or had an invalid file version
tag</td>
</tr>
<tr><td>missing_info_hash</td>
<td>29</td>
<td>The fast resume file was missing or had an invalid info-hash</td>
</tr>
<tr><td>mismatching_info_hash</td>
<td>30</td>
<td>The info-hash did not match the torrent</td>
</tr>
<tr><td>invalid_hostname</td>
<td>31</td>
<td>The URL contained an invalid hostname</td>
</tr>
<tr><td>invalid_port</td>
<td>32</td>
<td>The URL had an invalid port</td>
</tr>
<tr><td>port_blocked</td>
<td>33</td>
<td>The port is blocked by the port-filter, and prevented the
connection</td>
</tr>
<tr><td>expected_close_bracket_in_address</td>
<td>34</td>
<td>The IPv6 address was expected to end with ']'</td>
</tr>
<tr><td>destructing_torrent</td>
<td>35</td>
<td>The torrent is being destructed, preventing the operation to
succeed</td>
</tr>
<tr><td>timed_out</td>
<td>36</td>
<td>The connection timed out</td>
</tr>
<tr><td>upload_upload_connection</td>
<td>37</td>
<td>The peer is upload only, and we are upload only. There's no point
in keeping the connection</td>
</tr>
<tr><td>uninteresting_upload_peer</td>
<td>38</td>
<td>The peer is upload only, and we're not interested in it. There's
no point in keeping the connection</td>
</tr>
<tr><td>invalid_info_hash</td>
<td>39</td>
<td>The peer sent an unknown info-hash</td>
</tr>
<tr><td>torrent_paused</td>
<td>40</td>
<td>The torrent is paused, preventing the operation from succeeding</td>
</tr>
<tr><td>invalid_have</td>
<td>41</td>
<td>The peer sent an invalid have message, either wrong size or
referring to a piece that doesn't exist in the torrent</td>
</tr>
<tr><td>invalid_bitfield_size</td>
<td>42</td>
<td>The <aclass="reference external"href="reference-Utility.html#bitfield">bitfield</a> message had the incorrect size</td>
</tr>
<tr><td>too_many_requests_when_choked</td>
<td>43</td>
<td>The peer kept requesting pieces after it was choked, possible
abuse attempt.</td>
</tr>
<tr><td>invalid_piece</td>
<td>44</td>
<td>The peer sent a piece message that does not correspond to a
piece request sent by the client</td>
</tr>
<tr><td>no_memory</td>
<td>45</td>
<td>memory allocation failed</td>
</tr>
<tr><td>torrent_aborted</td>
<td>46</td>
<td>The torrent is aborted, preventing the operation to succeed</td>
</tr>
<tr><td>self_connection</td>
<td>47</td>
<td>The peer is a connection to ourself, no point in keeping it</td>
</tr>
<tr><td>invalid_piece_size</td>
<td>48</td>
<td>The peer sent a piece message with invalid size, either negative
or greater than one block</td>
</tr>
<tr><td>timed_out_no_interest</td>
<td>49</td>
<td>The peer has not been interesting or interested in us for too
long, no point in keeping it around</td>
</tr>
<tr><td>timed_out_inactivity</td>
<td>50</td>
<td>The peer has not said anything in a long time, possibly dead</td>
</tr>
<tr><td>timed_out_no_handshake</td>
<td>51</td>
<td>The peer did not send a handshake within a reasonable amount of
time, it might not be a bittorrent peer</td>
</tr>
<tr><td>timed_out_no_request</td>
<td>52</td>
<td>The peer has been unchoked for too long without requesting any
data. It might be lying about its interest in us</td>
</tr>
<tr><td>invalid_choke</td>
<td>53</td>
<td>The peer sent an invalid choke message</td>
</tr>
<tr><td>invalid_unchoke</td>
<td>54</td>
<td>The peer send an invalid unchoke message</td>
</tr>
<tr><td>invalid_interested</td>
<td>55</td>
<td>The peer sent an invalid interested message</td>
</tr>
<tr><td>invalid_not_interested</td>
<td>56</td>
<td>The peer sent an invalid not-interested message</td>
</tr>
<tr><td>invalid_request</td>
<td>57</td>
<td>The peer sent an invalid piece request message</td>
</tr>
<tr><td>invalid_hash_list</td>
<td>58</td>
<td>The peer sent an invalid hash-list message (this is part of the
merkle-torrent extension)</td>
</tr>
<tr><td>invalid_hash_piece</td>
<td>59</td>
<td>The peer sent an invalid hash-piece message (this is part of the
merkle-torrent extension)</td>
</tr>
<tr><td>invalid_cancel</td>
<td>60</td>
<td>The peer sent an invalid cancel message</td>
</tr>
<tr><td>invalid_dht_port</td>
<td>61</td>
<td>The peer sent an invalid DHT port-message</td>
</tr>
<tr><td>invalid_suggest</td>
<td>62</td>
<td>The peer sent an invalid suggest piece-message</td>
</tr>
<tr><td>invalid_have_all</td>
<td>63</td>
<td>The peer sent an invalid have all-message</td>
</tr>
<tr><td>invalid_have_none</td>
<td>64</td>
<td>The peer sent an invalid have none-message</td>
</tr>
<tr><td>invalid_reject</td>
<td>65</td>
<td>The peer sent an invalid reject message</td>
</tr>
<tr><td>invalid_allow_fast</td>
<td>66</td>
<td>The peer sent an invalid allow fast-message</td>
</tr>
<tr><td>invalid_extended</td>
<td>67</td>
<td>The peer sent an invalid extesion message ID</td>
</tr>
<tr><td>invalid_message</td>
<td>68</td>
<td>The peer sent an invalid message ID</td>
</tr>
<tr><td>sync_hash_not_found</td>
<td>69</td>
<td>The synchronization hash was not found in the encrypted handshake</td>
</tr>
<tr><td>invalid_encryption_constant</td>
<td>70</td>
<td>The encryption constant in the handshake is invalid</td>
</tr>
<tr><td>no_plaintext_mode</td>
<td>71</td>
<td>The peer does not support plaintext, which is the selected mode</td>
</tr>
<tr><td>no_rc4_mode</td>
<td>72</td>
<td>The peer does not support rc4, which is the selected mode</td>
</tr>
<tr><td>unsupported_encryption_mode</td>
<td>73</td>
<td>The peer does not support any of the encryption modes that the
client supports</td>
</tr>
<tr><td>unsupported_encryption_mode_selected</td>
<td>74</td>
<td>The peer selected an encryption mode that the client did not
advertise and does not support</td>
</tr>
<tr><td>invalid_pad_size</td>
<td>75</td>
<td>The pad size used in the encryption handshake is of invalid size</td>
</tr>
<tr><td>invalid_encrypt_handshake</td>
<td>76</td>
<td>The encryption handshake is invalid</td>
</tr>
<tr><td>no_incoming_encrypted</td>
<td>77</td>
<td>The client is set to not support incoming encrypted connections
and this is an encrypted connection</td>
</tr>
<tr><td>no_incoming_regular</td>
<td>78</td>
<td>The client is set to not support incoming regular bittorrent
connections, and this is a regular connection</td>
</tr>
<tr><td>duplicate_peer_id</td>
<td>79</td>
<td>The client is already connected to this peer-ID</td>
</tr>
<tr><td>torrent_removed</td>
<td>80</td>
<td>Torrent was removed</td>
</tr>
<tr><td>packet_too_large</td>
<td>81</td>
<td>The packet size exceeded the upper sanity check-limit</td>
</tr>
<tr><td>reserved</td>
<td>82</td>
<td> </td>
</tr>
<tr><td>http_error</td>
<td>83</td>
<td>The web server responded with an error</td>
</tr>
<tr><td>missing_location</td>
<td>84</td>
<td>The web server response is missing a location header</td>
</tr>
<tr><td>invalid_redirection</td>
<td>85</td>
<td>The web seed redirected to a path that no longer matches the
.torrent directory structure</td>
</tr>
<tr><td>redirecting</td>
<td>86</td>
<td>The connection was closed becaused it redirected to a different
URL</td>
</tr>
<tr><td>invalid_range</td>
<td>87</td>
<td>The HTTP range header is invalid</td>
</tr>
<tr><td>no_content_length</td>
<td>88</td>
<td>The HTTP response did not have a content length</td>
</tr>
<tr><td>banned_by_ip_filter</td>
<td>89</td>
<td>The IP is blocked by the IP filter</td>
</tr>
<tr><td>too_many_connections</td>
<td>90</td>
<td>At the connection limit</td>
</tr>
<tr><td>peer_banned</td>
<td>91</td>
<td>The peer is marked as banned</td>
</tr>
<tr><td>stopping_torrent</td>
<td>92</td>
<td>The torrent is stopping, causing the operation to fail</td>
</tr>
<tr><td>too_many_corrupt_pieces</td>
<td>93</td>
<td>The peer has sent too many corrupt pieces and is banned</td>
</tr>
<tr><td>torrent_not_ready</td>
<td>94</td>
<td>The torrent is not ready to receive peers</td>
</tr>
<tr><td>peer_not_constructed</td>
<td>95</td>
<td>The peer is not completely constructed yet</td>
</tr>
<tr><td>session_closing</td>
<td>96</td>
<td>The <aclass="reference external"href="reference-Session.html#session">session</a> is closing, causing the operation to fail</td>
</tr>
<tr><td>optimistic_disconnect</td>
<td>97</td>
<td>The peer was disconnected in order to leave room for a
potentially better peer</td>
</tr>
<tr><td>torrent_finished</td>
<td>98</td>
<td>The torrent is finished</td>
</tr>
<tr><td>no_router</td>
<td>99</td>
<td>No UPnP router found</td>
</tr>
<tr><td>metadata_too_large</td>
<td>100</td>
<td>The metadata message says the metadata exceeds the limit</td>
</tr>
<tr><td>invalid_metadata_request</td>
<td>101</td>
<td>The peer sent an invalid metadata request message</td>
</tr>
<tr><td>invalid_metadata_size</td>
<td>102</td>
<td>The peer advertised an invalid metadata size</td>
</tr>
<tr><td>invalid_metadata_offset</td>
<td>103</td>
<td>The peer sent a message with an invalid metadata offset</td>
</tr>
<tr><td>invalid_metadata_message</td>
<td>104</td>
<td>The peer sent an invalid metadata message</td>
</tr>
<tr><td>pex_message_too_large</td>
<td>105</td>
<td>The peer sent a peer exchange message that was too large</td>
</tr>
<tr><td>invalid_pex_message</td>
<td>106</td>
<td>The peer sent an invalid peer exchange message</td>
</tr>
<tr><td>invalid_lt_tracker_message</td>
<td>107</td>
<td>The peer sent an invalid tracker exchange message</td>
</tr>
<tr><td>too_frequent_pex</td>
<td>108</td>
<td>The peer sent an pex messages too often. This is a possible
attempt of and attack</td>
</tr>
<tr><td>no_metadata</td>
<td>109</td>
<td>The operation failed because it requires the torrent to have
the metadata (.torrent file) and it doesn't have it yet.
This happens for magnet links before they have downloaded the
metadata, and also torrents added by URL.</td>
</tr>
<tr><td>invalid_dont_have</td>
<td>110</td>
<td>The peer sent an invalid <ttclass="docutils literal">dont_have</tt> message. The dont have
message is an extension to allow peers to advertise that the
no longer has a piece they previously had.</td>
</tr>
<tr><td>requires_ssl_connection</td>
<td>111</td>
<td>The peer tried to connect to an SSL torrent without connecting
over SSL.</td>
</tr>
<tr><td>invalid_ssl_cert</td>
<td>112</td>
<td>The peer tried to connect to a torrent with a certificate