diff options
Diffstat (limited to 'NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c')
-rw-r--r-- | NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c b/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c index f1da69bbf7..edb8f580fa 100644 --- a/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c @@ -1995,6 +1995,9 @@ Exit: Translate the status code in HTTP message to EFI_HTTP_STATUS_CODE defined
in UEFI 2.5 specification.
+ The official HTTP status codes can be found here:
+ https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
+
@param[in] StatusCode The status code value in HTTP message.
@return Value defined in EFI_HTTP_STATUS_CODE .
@@ -2077,6 +2080,8 @@ HttpMappingToStatusCode ( return HTTP_STATUS_416_REQUESTED_RANGE_NOT_SATISFIED;
case 417:
return HTTP_STATUS_417_EXPECTATION_FAILED;
+ case 429:
+ return HTTP_STATUS_429_TOO_MANY_REQUESTS;
case 500:
return HTTP_STATUS_500_INTERNAL_SERVER_ERROR;
case 501:
|