Specifications
Version 2.0
225
Appendix C UEFI Shell Status
Codes
Most UEFI Shell commands return SHELL_STATUS code values. These UEFI Shell
status codes are enumerated below.
Table 31 SHELL_STATUS return codes
Mnemonic Value Description
SHELL_SUCCESS 0 The operation completed successfully
SHELL_LOAD_ERROR 1 The image failed to load.
SHELL_INVALID_PARAMETER 2 There was an error in the command-line options.
SHELL_UNSUPPORTED 3 The operation is not supported.
SHELL_BAD_BUFFER_SIZE 4 The buffer was not the proper size for the request.
SHELL_BUFFER_TOO_SMALL 5 The buffer is not large enough to hold the requested data.
The required buffer size is returned in the appropriate
parameter when this error occurs.
SHELL_NOT_READY 6 There is no data pending upon return.
SHELL_DEVICE_ERROR 7 The physical device reported an error while attempting
the operation.
SHELL_WRITE_PROTECTED 8 The device cannot be written to.
SHELL_OUT_OF_RESOURCES 9 A resource has run out.
SHELL_VOLUME_CORRUPTED 10 An inconstancy was detected on the file system causing
the operating to fail.
SHELL_VOLUME_FULL 11 There is no more space on the file system.
SHELL_NO_MEDIA 12 The device does not contain any medium to perform the
operation.
SHELL_MEDIA_CHANGED 13 The medium in the device has changed since the last
access.
SHELL_NOT_FOUND 14 The item was not found.
SHELL_ACCESS_DENIED 15 Access was denied.
SHELL_TIMEOUT 18 The timeout time expired.
SHELL_NOT_STARTED 19 The specified operation could not be started.
SHELL_ALREADY_STARTED 20 The specified operation had already started.
SHELL_ABORTED 21 The operation was aborted by the user
SHELL_INCOMPATIBLE_VERSION 25 The function encountered an internal version that was
incompatible with a version requested by the caller.










