@@ -413,23 +413,41 @@ class HTTPPermanentRedirect < HTTPRedirection
413
413
# Response class for <tt>Bad Request</tt> responses (status code 400).
414
414
#
415
415
# The server cannot or will not process the request due to an apparent client error.
416
- # See {400 Bad Request}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#400].
416
+ #
417
+ # References:
418
+ #
419
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400].
420
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-400-bad-request].
421
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#400].
422
+ #
417
423
class HTTPBadRequest < HTTPClientError
418
424
HAS_BODY = true
419
425
end
420
426
421
427
# Response class for <tt>Unauthorized</tt> responses (status code 401).
422
428
#
423
429
# Authentication is required, but either was not provided or failed.
424
- # See {401 Unauthorized}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#401].
430
+ #
431
+ # References:
432
+ #
433
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401].
434
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-401-unauthorized].
435
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#401].
436
+ #
425
437
class HTTPUnauthorized < HTTPClientError
426
438
HAS_BODY = true
427
439
end
428
440
429
441
# Response class for <tt>Payment Required</tt> responses (status code 402).
430
442
#
431
443
# Reserved for future use.
432
- # See {402 Payment Required}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#402].
444
+ #
445
+ # References:
446
+ #
447
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402].
448
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-402-payment-required].
449
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#402].
450
+ #
433
451
class HTTPPaymentRequired < HTTPClientError
434
452
HAS_BODY = true
435
453
end
@@ -438,23 +456,41 @@ class HTTPPaymentRequired < HTTPClientError
438
456
#
439
457
# The request contained valid data and was understood by the server,
440
458
# but the server is refusing action.
441
- # See {403 Forbidden}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#403].
459
+ #
460
+ # References:
461
+ #
462
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403].
463
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-403-forbidden].
464
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#403].
465
+ #
442
466
class HTTPForbidden < HTTPClientError
443
467
HAS_BODY = true
444
468
end
445
469
446
470
# Response class for <tt>Not Found</tt> responses (status code 404).
447
471
#
448
472
# The requested resource could not be found but may be available in the future.
449
- # See {404 Not Found}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#404].
473
+ #
474
+ # References:
475
+ #
476
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404].
477
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-404-not-found].
478
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#404].
479
+ #
450
480
class HTTPNotFound < HTTPClientError
451
481
HAS_BODY = true
452
482
end
453
483
454
484
# Response class for <tt>Method Not Allowed</tt> responses (status code 405).
455
485
#
456
486
# The request method is not supported for the requested resource.
457
- # See {405 Method Not Allowed}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#405].
487
+ #
488
+ # References:
489
+ #
490
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405].
491
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-405-method-not-allowed].
492
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#405].
493
+ #
458
494
class HTTPMethodNotAllowed < HTTPClientError
459
495
HAS_BODY = true
460
496
end
@@ -463,23 +499,41 @@ class HTTPMethodNotAllowed < HTTPClientError
463
499
#
464
500
# The requested resource is capable of generating only content
465
501
# that not acceptable according to the Accept headers sent in the request.
466
- # See {406 Not Acceptable}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#406].
502
+ #
503
+ # References:
504
+ #
505
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406].
506
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-406-not-acceptable].
507
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#406].
508
+ #
467
509
class HTTPNotAcceptable < HTTPClientError
468
510
HAS_BODY = true
469
511
end
470
512
471
513
# Response class for <tt>Proxy Authentication Required</tt> responses (status code 407).
472
514
#
473
515
# The client must first authenticate itself with the proxy.
474
- # See {407 Proxy Authentication Required}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#407].
516
+ #
517
+ # References:
518
+ #
519
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407].
520
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-407-proxy-authentication-re].
521
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#407].
522
+ #
475
523
class HTTPProxyAuthenticationRequired < HTTPClientError
476
524
HAS_BODY = true
477
525
end
478
526
479
527
# Response class for <tt>Request Timeout</tt> responses (status code 408).
480
528
#
481
529
# The server timed out waiting for the request.
482
- # See {408 Request Timeout}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#408].
530
+ #
531
+ # References:
532
+ #
533
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408].
534
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-408-request-timeout].
535
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#408].
536
+ #
483
537
class HTTPRequestTimeout < HTTPClientError
484
538
HAS_BODY = true
485
539
end
@@ -488,7 +542,13 @@ class HTTPRequestTimeout < HTTPClientError
488
542
# Response class for <tt>Conflict</tt> responses (status code 409).
489
543
#
490
544
# The request could not be processed because of conflict in the current state of the resource.
491
- # See {409 Conflict}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#409].
545
+ #
546
+ # References:
547
+ #
548
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409].
549
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-409-conflict].
550
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#409].
551
+ #
492
552
class HTTPConflict < HTTPClientError
493
553
HAS_BODY = true
494
554
end
@@ -497,7 +557,13 @@ class HTTPConflict < HTTPClientError
497
557
#
498
558
# The resource requested was previously in use but is no longer available
499
559
# and will not be available again.
500
- # See {410 Gone}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#410].
560
+ #
561
+ # References:
562
+ #
563
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410].
564
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-410-gone].
565
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#410].
566
+ #
501
567
class HTTPGone < HTTPClientError
502
568
HAS_BODY = true
503
569
end
@@ -506,7 +572,13 @@ class HTTPGone < HTTPClientError
506
572
#
507
573
# The request did not specify the length of its content,
508
574
# which is required by the requested resource.
509
- # See {411 Length Required}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#411].
575
+ #
576
+ # References:
577
+ #
578
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411].
579
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-411-length-required].
580
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#411].
581
+ #
510
582
class HTTPLengthRequired < HTTPClientError
511
583
HAS_BODY = true
512
584
end
@@ -515,15 +587,27 @@ class HTTPLengthRequired < HTTPClientError
515
587
#
516
588
# The server does not meet one of the preconditions
517
589
# specified in the request headers.
518
- # See {412 Precondition Failed}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#412].
590
+ #
591
+ # References:
592
+ #
593
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412].
594
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-412-precondition-failed].
595
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#412].
596
+ #
519
597
class HTTPPreconditionFailed < HTTPClientError
520
598
HAS_BODY = true
521
599
end
522
600
523
601
# Response class for <tt>Payload Too Large</tt> responses (status code 413).
524
602
#
525
603
# The request is larger than the server is willing or able to process.
526
- # See {413 Payload Too Large}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#413].
604
+ #
605
+ # References:
606
+ #
607
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413].
608
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-413-content-too-large].
609
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#413].
610
+ #
527
611
class HTTPPayloadTooLarge < HTTPClientError
528
612
HAS_BODY = true
529
613
end
@@ -532,7 +616,13 @@ class HTTPPayloadTooLarge < HTTPClientError
532
616
# Response class for <tt>URI Too Long</tt> responses (status code 414).
533
617
#
534
618
# The URI provided was too long for the server to process.
535
- # See {414 URI Too Long}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#414].
619
+ #
620
+ # References:
621
+ #
622
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414].
623
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-414-uri-too-long].
624
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#414].
625
+ #
536
626
class HTTPURITooLong < HTTPClientError
537
627
HAS_BODY = true
538
628
end
@@ -542,15 +632,27 @@ class HTTPURITooLong < HTTPClientError
542
632
# Response class for <tt>Unsupported Media Type</tt> responses (status code 415).
543
633
#
544
634
# The request entity has a media type which the server or resource does not support.
545
- # See {415 Unsupported Media Type}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#415].
635
+ #
636
+ # References:
637
+ #
638
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415].
639
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-415-unsupported-media-type].
640
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#415].
641
+ #
546
642
class HTTPUnsupportedMediaType < HTTPClientError
547
643
HAS_BODY = true
548
644
end
549
645
550
646
# Response class for <tt>Range Not Satisfiable</tt> responses (status code 416).
551
647
#
552
648
# The request entity has a media type which the server or resource does not support.
553
- # See {416 Range Not Satisfiable}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#416].
649
+ #
650
+ # References:
651
+ #
652
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416].
653
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-416-range-not-satisfiable].
654
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#416].
655
+ #
554
656
class HTTPRangeNotSatisfiable < HTTPClientError
555
657
HAS_BODY = true
556
658
end
@@ -559,7 +661,13 @@ class HTTPRangeNotSatisfiable < HTTPClientError
559
661
# Response class for <tt>Expectation Failed</tt> responses (status code 417).
560
662
#
561
663
# The server cannot meet the requirements of the Expect request-header field.
562
- # See {417 Expectation Failed}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#417].
664
+ #
665
+ # References:
666
+ #
667
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417].
668
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-417-expectation-failed].
669
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#417].
670
+ #
563
671
class HTTPExpectationFailed < HTTPClientError
564
672
HAS_BODY = true
565
673
end
@@ -572,23 +680,38 @@ class HTTPExpectationFailed < HTTPClientError
572
680
# Response class for <tt>Misdirected Request</tt> responses (status code 421).
573
681
#
574
682
# The request was directed at a server that is not able to produce a response.
575
- # See {421 Misdirected Request}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#421].
683
+ #
684
+ # References:
685
+ #
686
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-421-misdirected-request].
687
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#421].
688
+ #
576
689
class HTTPMisdirectedRequest < HTTPClientError
577
690
HAS_BODY = true
578
691
end
579
692
580
693
# Response class for <tt>Unprocessable Entity</tt> responses (status code 422).
581
694
#
582
695
# The request was well-formed but had semantic errors.
583
- # See {422 Unprocessable Entity}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#422].
696
+ #
697
+ # References:
698
+ #
699
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422].
700
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-422-unprocessable-content].
701
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#422].
702
+ #
584
703
class HTTPUnprocessableEntity < HTTPClientError
585
704
HAS_BODY = true
586
705
end
587
706
588
707
# Response class for <tt>Locked (WebDAV)</tt> responses (status code 423).
589
708
#
590
709
# The requested resource is locked.
591
- # See {423 Locked (WebDAV)}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#423].
710
+ #
711
+ # References:
712
+ #
713
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#423].
714
+ #
592
715
class HTTPLocked < HTTPClientError
593
716
HAS_BODY = true
594
717
end
@@ -597,6 +720,11 @@ class HTTPLocked < HTTPClientError
597
720
#
598
721
# The request failed because it depended on another request and that request failed.
599
722
# See {424 Failed Dependency (WebDAV)}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#424].
723
+ #
724
+ # References:
725
+ #
726
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#424].
727
+ #
600
728
class HTTPFailedDependency < HTTPClientError
601
729
HAS_BODY = true
602
730
end
@@ -607,23 +735,39 @@ class HTTPFailedDependency < HTTPClientError
607
735
# Response class for <tt>Upgrade Required</tt> responses (status code 426).
608
736
#
609
737
# The client should switch to the protocol given in the Upgrade header field.
610
- # See {426 Upgrade Required}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#426].
738
+ #
739
+ # References:
740
+ #
741
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426].
742
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-426-upgrade-required].
743
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#426].
744
+ #
611
745
class HTTPUpgradeRequired < HTTPClientError
612
746
HAS_BODY = true
613
747
end
614
748
615
749
# Response class for <tt>Precondition Required</tt> responses (status code 428).
616
750
#
617
751
# The origin server requires the request to be conditional.
618
- # See {428 Precondition Required}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#428].
752
+ #
753
+ # References:
754
+ #
755
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428].
756
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#428].
757
+ #
619
758
class HTTPPreconditionRequired < HTTPClientError
620
759
HAS_BODY = true
621
760
end
622
761
623
762
# Response class for <tt>Too Many Requests</tt> responses (status code 429).
624
763
#
625
764
# The user has sent too many requests in a given amount of time.
626
- # See {429 Too Many Requests}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#429].
765
+ #
766
+ # References:
767
+ #
768
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429].
769
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#429].
770
+ #
627
771
class HTTPTooManyRequests < HTTPClientError
628
772
HAS_BODY = true
629
773
end
@@ -632,7 +776,12 @@ class HTTPTooManyRequests < HTTPClientError
632
776
#
633
777
# An individual header field is too large,
634
778
# or all the header fields collectively, are too large.
635
- # See {431 Request Header Fields Too Large}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#431].
779
+ #
780
+ # References:
781
+ #
782
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431].
783
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#431].
784
+ #
636
785
class HTTPRequestHeaderFieldsTooLarge < HTTPClientError
637
786
HAS_BODY = true
638
787
end
@@ -641,7 +790,12 @@ class HTTPRequestHeaderFieldsTooLarge < HTTPClientError
641
790
#
642
791
# A server operator has received a legal demand to deny access to a resource or to a set of resources
643
792
# that includes the requested resource.
644
- # See {451 Unavailable For Legal Reasons}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#451].
793
+ #
794
+ # References:
795
+ #
796
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451].
797
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#451].
798
+ #
645
799
class HTTPUnavailableForLegalReasons < HTTPClientError
646
800
HAS_BODY = true
647
801
end
0 commit comments