ICMP Types & Codes

Type  Name  Reference 
0 Echo Reply [RFC792]
1 Unassigned
2 Unassigned
3 Destination Unreachable [RFC792]
4 Source Quench (Deprecated) [RFC792][RFC6633]
5 Redirect [RFC792]
6 Alternate Host Address (Deprecated) [RFC6918]
7 Unassigned
8 Echo [RFC792]
9 Router Advertisement [RFC1256]
10 Router Solicitation [RFC1256]
11 Time Exceeded [RFC792]
12 Parameter Problem [RFC792]
13 Timestamp [RFC792]
14 Timestamp Reply [RFC792]
15 Information Request (Deprecated) [RFC792][RFC6918]
16 Information Reply (Deprecated) [RFC792][RFC6918]
17 Address Mask Request (Deprecated) [RFC950][RFC6918]
18 Address Mask Reply (Deprecated) [RFC950][RFC6918]
19 Reserved (for Security) [Solo]
20-29 Reserved (for Robustness Experiment) [ZSu]
30 Traceroute (Deprecated) [RFC1393][RFC6918]
31 Datagram Conversion Error (Deprecated) [RFC1475][RFC6918]
32 Mobile Host Redirect (Deprecated) [David_Johnson][RFC6918]
33 IPv6 Where-Are-You (Deprecated) [Simpson][RFC6918]
34 IPv6 I-Am-Here (Deprecated) [Simpson][RFC6918]
35 Mobile Registration Request (Deprecated) [Simpson][RFC6918]
36 Mobile Registration Reply (Deprecated) [Simpson][RFC6918]
37 Domain Name Request (Deprecated) [RFC1788][RFC6918]
38 Domain Name Reply (Deprecated) [RFC1788][RFC6918]
39 SKIP (Deprecated) [Markson][RFC6918]
40 Photuris [RFC2521]
41 ICMP messages utilized by experimental mobility protocols such as Seamoby [RFC4065]
42 Extended Echo Request [RFC8335]
43 Extended Echo Reply [RFC8335]
44-252 Unassigned
253 RFC3692-style Experiment 1 [RFC4727]
254 RFC3692-style Experiment 2 [RFC4727]
255 Reserved [JBP]
Codes  Description  Reference 
0 Net Unreachable [RFC792]
1 Host Unreachable [RFC792]
2 Protocol Unreachable [RFC792]
3 Port Unreachable [RFC792]
4 Fragmentation Needed and Don’t Fragment was Set [RFC792]
5 Source Route Failed [RFC792]
6 Destination Network Unknown [RFC1122]
7 Destination Host Unknown [RFC1122]
8 Source Host Isolated [RFC1122]
9 Communication with Destination Network is Administratively Prohibited [RFC1122]
10 Communication with Destination Host is Administratively Prohibited [RFC1122]
11 Destination Network Unreachable for Type of Service [RFC1122]
12 Destination Host Unreachable for Type of Service [RFC1122]
13 Communication Administratively Prohibited [RFC1812]
14 Host Precedence Violation [RFC1812]
15 Precedence cutoff in effect [RFC1812]