mirror of https://github.com/acidanthera/audk.git
MdePkg:Add a new error status code EFI_HTTP_ERROR.
v2: *Return the EFI_HTTP_ERROR in the “Status” field in token, instead of in the status codes returned table of EFI_HTTP_PROTOCOL.Response() interface. Add a new error status code EFI_HTTP_ERROR in corresponding with the UEFI 2.6 spec Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
bec55c33c7
commit
10a3840ff9
|
@ -6,7 +6,7 @@
|
|||
environment. There are a set of base libraries in the Mde Package that can
|
||||
be used to implement base modules.
|
||||
|
||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@ -940,6 +940,11 @@ typedef UINTN RETURN_STATUS;
|
|||
///
|
||||
#define RETURN_COMPROMISED_DATA ENCODE_ERROR (33)
|
||||
|
||||
///
|
||||
/// A HTTP error occurred during the network operation.
|
||||
///
|
||||
#define RETURN_HTTP_ERROR ENCODE_ERROR (35)
|
||||
|
||||
///
|
||||
/// The string contained one or more characters that
|
||||
/// the device could not render and were skipped.
|
||||
|
|
|
@ -282,6 +282,8 @@ typedef struct {
|
|||
/// Status will be set to one of the following value if the HTTP request is
|
||||
/// successfully sent or if an unexpected error occurs:
|
||||
/// EFI_SUCCESS: The HTTP request was successfully sent to the remote host.
|
||||
/// EFI_HTTP_ERROR: The response message was successfully received but contains a
|
||||
/// HTTP error. The response status code is returned in token.
|
||||
/// EFI_ABORTED: The HTTP request was cancelled by the caller and removed from
|
||||
/// the transmit queue.
|
||||
/// EFI_TIMEOUT: The HTTP request timed out before reaching the remote host.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Defines data types and constants introduced in UEFI.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
||||
Portions copyright (c) 2011 - 2016, ARM Ltd. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
|
@ -151,6 +151,7 @@ typedef union {
|
|||
#define EFI_END_OF_FILE RETURN_END_OF_FILE
|
||||
#define EFI_INVALID_LANGUAGE RETURN_INVALID_LANGUAGE
|
||||
#define EFI_COMPROMISED_DATA RETURN_COMPROMISED_DATA
|
||||
#define EFI_HTTP_ERROR RETURN_HTTP_ERROR
|
||||
|
||||
#define EFI_WARN_UNKNOWN_GLYPH RETURN_WARN_UNKNOWN_GLYPH
|
||||
#define EFI_WARN_DELETE_FAILURE RETURN_WARN_DELETE_FAILURE
|
||||
|
|
Loading…
Reference in New Issue