Skip to content

Commit

Permalink
Add support for HTTP 429
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Lake committed Jul 16, 2019
1 parent 0527127 commit 02fe9a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HTTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ interface HTTP
const UNSUPPORTED_MEDIA_TYPE = 415;
const REQUESTED_RANGE_NOT_SATISFIABLE = 416;
const EXPECTATION_FAILED = 417;
const TOO_MANY_REQUESTS = 429;

const INTERNAL_SERVER_ERROR = 500;
const NOT_IMPLEMENTED = 501;
Expand Down Expand Up @@ -82,6 +83,7 @@ interface HTTP
'413' => 'Request Entity Too Large',
'414' => 'Request-URI Too Large',
'415' => 'Unsupported Media Type',
'429' => 'Too many requests',
'500' => 'Internal Server Error',
'501' => 'Not Implemented',
'502' => 'Bad Gateway',
Expand Down

0 comments on commit 02fe9a7

Please sign in to comment.