@@ -624,6 +624,190 @@ Used for status codes outside the regular status code ranges (100-999). |
624 | 624 | Used when the `Trailer` header is set even though the transfer encoding does not |
625 | 625 | support that. |
626 | 626 |
|
| 627 | +<a id="ERR_HTTP2_CONNECT_AUTHORITY"></a> |
| 628 | +### ERR_HTTP2_CONNECT_AUTHORITY |
| 629 | + |
| 630 | +For HTTP/2 requests using the `CONNECT` method, the `:authority` pseudo-header |
| 631 | +is required. |
| 632 | + |
| 633 | +<a id="ERR_HTTP2_CONNECT_PATH"></a> |
| 634 | +### ERR_HTTP2_CONNECT_PATH |
| 635 | + |
| 636 | +For HTTP/2 requests using the `CONNECT` method, the `:path` pseudo-header is |
| 637 | +forbidden. |
| 638 | + |
| 639 | +<a id="ERR_HTTP2_CONNECT_SCHEME"></a> |
| 640 | +### ERR_HTTP2_CONNECT_SCHEME |
| 641 | + |
| 642 | +The HTTP/2 requests using the `CONNECT` method, the `:scheme` pseudo-header is |
| 643 | +forbidden. |
| 644 | + |
| 645 | +<a id="ERR_HTTP2_ERROR"></a> |
| 646 | +### ERR_HTTP2_ERROR |
| 647 | + |
| 648 | +A non-specific HTTP/2 error has occurred. |
| 649 | + |
| 650 | +<a id="ERR_HTTP2_FRAME_ERROR"></a> |
| 651 | +### ERR_HTTP2_FRAME_ERROR |
| 652 | + |
| 653 | +Used when a failure occurs sending an individual frame on the HTTP/2 |
| 654 | +session. |
| 655 | + |
| 656 | +<a id="ERR_HTTP2_HEADERS_OBJECT"></a> |
| 657 | +### ERR_HTTP2_HEADERS_OBJECT |
| 658 | + |
| 659 | +Used when an HTTP/2 Headers Object is expected. |
| 660 | + |
| 661 | +<a id="ERR_HTTP2_HEADERS_SENT"></a> |
| 662 | +### ERR_HTTP2_HEADERS_SENT |
| 663 | + |
| 664 | +Used when an attempt is made to send multiple response headers. |
| 665 | + |
| 666 | +<a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a> |
| 667 | +### ERR_HTTP2_HEADER_SINGLE_VALUE |
| 668 | + |
| 669 | +Used when multiple values have been provided for an HTTP header field that |
| 670 | +required to have only a single value. |
| 671 | + |
| 672 | +<a id="ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND"></a> |
| 673 | +### ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND |
| 674 | + |
| 675 | +HTTP/2 Informational headers must only be sent *prior* to calling the |
| 676 | +`Http2Stream.prototype.respond()` method. |
| 677 | + |
| 678 | +<a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a> |
| 679 | +### ERR_HTTP2_INFO_STATUS_NOT_ALLOWED |
| 680 | + |
| 681 | +Informational HTTP status codes (`1xx`) may not be set as the response status |
| 682 | +code on HTTP/2 responses. |
| 683 | + |
| 684 | +<a id="ERR_HTTP2_INVALID_CONNECTION_HEADERS"></a> |
| 685 | +### ERR_HTTP2_INVALID_CONNECTION_HEADERS |
| 686 | + |
| 687 | +HTTP/1 connection specific headers are forbidden to be used in HTTP/2 |
| 688 | +requests and responses. |
| 689 | + |
| 690 | +<a id="ERR_HTTP2_INVALID_HEADER_VALUE"></a> |
| 691 | +### ERR_HTTP2_INVALID_HEADER_VALUE |
| 692 | + |
| 693 | +Used to indicate that an invalid HTTP/2 header value has been specified. |
| 694 | + |
| 695 | +<a id="ERR_HTTP2_INVALID_INFO_STATUS"></a> |
| 696 | +### ERR_HTTP2_INVALID_INFO_STATUS |
| 697 | + |
| 698 | +An invalid HTTP informational status code has been specified. Informational |
| 699 | +status codes must be an integer between `100` and `199` (inclusive). |
| 700 | + |
| 701 | +<a id="ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH"></a> |
| 702 | + |
| 703 | +Input `Buffer` and `Uint8Array` instances passed to the |
| 704 | +`http2.getUnpackedSettings()` API must have a length that is a multiple of |
| 705 | +six. |
| 706 | + |
| 707 | +<a id="ERR_HTTP2_INVALID_PSEUDOHEADER"></a> |
| 708 | +### ERR_HTTP2_INVALID_PSEUDOHEADER |
| 709 | + |
| 710 | +Only valid HTTP/2 pseudoheaders (`:status`, `:path`, `:authority`, `:scheme`, |
| 711 | +and `:method`) may be used. |
| 712 | + |
| 713 | +<a id="ERR_HTTP2_INVALID_SESSION"></a> |
| 714 | +### ERR_HTTP2_INVALID_SESSION |
| 715 | + |
| 716 | +Used when any action is performed on an `Http2Session` object that has already |
| 717 | +been destroyed. |
| 718 | + |
| 719 | +<a id="ERR_HTTP2_INVALID_SETTING_VALUE"></a> |
| 720 | +### ERR_HTTP2_INVALID_SETTING_VALUE |
| 721 | + |
| 722 | +An invalid value has been specified for an HTTP/2 setting. |
| 723 | + |
| 724 | +<a id="ERR_HTTP2_INVALID_STREAM"></a> |
| 725 | +### ERR_HTTP2_INVALID_STREAM |
| 726 | + |
| 727 | +Used when an operation has been performed on a stream that has already been |
| 728 | +destroyed. |
| 729 | + |
| 730 | +<a id="ERR_HTTP2_MAX_PENDING_SETTINGS_ACK"></a> |
| 731 | +### ERR_HTTP2_MAX_PENDING_SETTINGS_ACK |
| 732 | + |
| 733 | +Whenever an HTTP/2 `SETTINGS` frame is sent to a connected peer, the peer is |
| 734 | +required to send an acknowledgement that it has received and applied the new |
| 735 | +SETTINGS. By default, a maximum number of un-acknowledged `SETTINGS` frame may |
| 736 | +be sent at any given time. This error code is used when that limit has been |
| 737 | +reached. |
| 738 | + |
| 739 | +<a id="ERR_HTTP2_OUT_OF_STREAMS"></a> |
| 740 | +### ERR_HTTP2_OUT_OF_STREAMS |
| 741 | + |
| 742 | +Used when the maximum number of streams on a single HTTP/2 session have been |
| 743 | +created. |
| 744 | + |
| 745 | +<a id="ERR_HTTP2_PAYLOAD_FORBIDDEN"></a> |
| 746 | +### ERR_HTTP2_PAYLOAD_FORBIDDEN |
| 747 | + |
| 748 | +Used when a message payload is specified for an HTTP response code for which |
| 749 | +a payload is forbidden. |
| 750 | + |
| 751 | +<a id="ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED"></a> |
| 752 | +### ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED |
| 753 | + |
| 754 | +Used to indicate that an HTTP/2 pseudo-header has been used inappropriately. |
| 755 | +Pseudo-headers are header key names that begin with the `:` prefix. |
| 756 | + |
| 757 | +<a id="ERR_HTTP2_PUSH_DISABLED"></a> |
| 758 | +### ERR_HTTP2_PUSH_DISABLED |
| 759 | + |
| 760 | +Used when push streams have been disabled by the client but an attempt to |
| 761 | +create a push stream is made. |
| 762 | + |
| 763 | +<a id="ERR_HTTP2_SEND_FILE"></a> |
| 764 | +### ERR_HTTP2_SEND_FILE |
| 765 | + |
| 766 | +Used when an attempt is made to use the |
| 767 | +`Http2Stream.prototype.responseWithFile()` API to send a non-regular file. |
| 768 | + |
| 769 | +<a id="ERR_HTTP2_SOCKET_BOUND"></a> |
| 770 | +### ERR_HTTP2_SOCKET_BOUND |
| 771 | + |
| 772 | +Used when an attempt is made to connect a `Http2Session` object to a |
| 773 | +`net.Socket` or `tls.TLSSocket` that has already been bound to another |
| 774 | +`Http2Session` object. |
| 775 | + |
| 776 | +<a id="ERR_HTTP2_STATUS_101"></a> |
| 777 | +### ERR_HTTP2_STATUS_101 |
| 778 | + |
| 779 | +Use of the `101` Informational status code is forbidden in HTTP/2. |
| 780 | + |
| 781 | +<a id="ERR_HTTP2_STATUS_INVALID"></a> |
| 782 | +### ERR_HTTP2_STATUS_INVALID |
| 783 | + |
| 784 | +An invalid HTTP status code has been specified. Status codes must be an integer |
| 785 | +between `100` and `599` (inclusive). |
| 786 | + |
| 787 | +<a id="ERR_HTTP2_STREAM_CLOSED"></a> |
| 788 | +### ERR_HTTP2_STREAM_CLOSED |
| 789 | + |
| 790 | +Used when an action has been performed on an HTTP/2 Stream that has already |
| 791 | +been closed. |
| 792 | + |
| 793 | +<a id="ERR_HTTP2_STREAM_ERROR"></a> |
| 794 | +### ERR_HTTP2_STREAM_ERROR |
| 795 | + |
| 796 | +Used when a non-zero error code has been specified in an RST_STREAM frame. |
| 797 | + |
| 798 | +<a id="ERR_HTTP2_STREAM_SELF_DEPENDENCY"></a> |
| 799 | +### ERR_HTTP2_STREAM_SELF_DEPENDENCY |
| 800 | + |
| 801 | +When setting the priority for an HTTP/2 stream, the stream may be marked as |
| 802 | +a dependency for a parent stream. This error code is used when an attempt is |
| 803 | +made to mark a stream and dependent of itself. |
| 804 | + |
| 805 | +<a id="ERR_HTTP2_UNSUPPORTED_PROTOCOL"></a> |
| 806 | +### ERR_HTTP2_UNSUPPORTED_PROTOCOL |
| 807 | + |
| 808 | +Used when `http2.connect()` is passed a URL that uses any protocol other than |
| 809 | +`http:` or `https:`. |
| 810 | + |
627 | 811 | <a id="ERR_INDEX_OUT_OF_RANGE"></a> |
628 | 812 | ### ERR_INDEX_OUT_OF_RANGE |
629 | 813 |
|
|