Include a mapping for HTTP error 429 to return the correct
status code. Additionally include a link to the official
HTTP status codes in the HttpMappingToStatusCode function header.
Signed-off-by: Kenneth Lautner <kenlautner3@gmail.com>
Translate the status code in HTTP message to EFI_HTTP_STATUS_CODE defined\r
in UEFI 2.5 specification.\r
\r
+ The official HTTP status codes can be found here:\r
+ https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml\r
+\r
@param[in] StatusCode The status code value in HTTP message.\r
\r
@return Value defined in EFI_HTTP_STATUS_CODE .\r
Translate the status code in HTTP message to EFI_HTTP_STATUS_CODE defined\r
in UEFI 2.5 specification.\r
\r
+ The official HTTP status codes can be found here:\r
+ https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml\r
+\r
@param[in] StatusCode The status code value in HTTP message.\r
\r
@return Value defined in EFI_HTTP_STATUS_CODE .\r
return HTTP_STATUS_416_REQUESTED_RANGE_NOT_SATISFIED;\r
case 417:\r
return HTTP_STATUS_417_EXPECTATION_FAILED;\r
+ case 429:\r
+ return HTTP_STATUS_429_TOO_MANY_REQUESTS;\r
case 500:\r
return HTTP_STATUS_500_INTERNAL_SERVER_ERROR;\r
case 501:\r