Error Codes

Error Codes

All system error codes follow a shared format.

BitsDescription
0-9Description
10-17Module
21-26Summary
27-31Level

For the description field, codes in range 1000(?)~1023 is common to all modules, while codes outside this range are defined independently by each module.

Description ranges: (some if not all of these could be specifically for fs-module)

NumDescription
100-179Not found
130-179 (subset of previous)Media not found
180-199Exists already
200-219Not enough space
220-229Invalidated archive
230-339Unacceptable
260-279 (subset of previous)Write protected
360-389Bad format
390-399Verification failure
600-629Out of resources
630-660Access denied
700-729Invalid argument
730-749Not initialized
750-759Already initialized
760-779Not supported

Description values:

NumDescription
0Success
2Invalid memory permissions (kernel)
4Invalid ticket version (AM)
5Invalid string length. This error is returned when service name length is greater than 8 or zero. (srv)
6Access denied. This error is returned when you request a service that you don’t have access to. (srv)
7String size does not match string contents. This error is returned when service name contains an unexpected null byte. (srv)
8Camera already in use/busy (qtm).
10Not enough memory (os)
26Session closed by remote (os)
32Empty CIA? (AM)
37Invalid NCCH? (AM)
39Invalid title version (AM)
43Database doesn’t exist/failed to open (AM)
44Trying to uninstall system-app (AM)
47Invalid command header (OS)
101Archive not mounted/mount-point not found (fs)
105Request timed out (http)
106Invalid signature/CIA? (AM)
120Title/object not found? (fs)
141Gamecard not inserted? (fs)
230Invalid open-flags / permissions? (fs)
271Invalid configuration (mvd).
391NCCH hash-check failed? (fs)
392RSA/AES-MAC verification failed? (fs)
393Invalid database? (AM)
395RomFS/Savedata hash-check failed? (fs)
630Command not allowed / missing permissions? (fs)
702Invalid path? (fs)
761Incorrect read-size for ExeFS? (fs)
1000Invalid selection
1001Too large
1002Not authorized
1003Already done
1004Invalid size
1005Invalid enum value
1006Invalid combination
1007No data
1008Busy
1009Misaligned address
1010Misaligned size
1011Out of memory
1012Not implemented
1013Invalid address
1014Invalid pointer
1015Invalid handle
1016Not initialized
1017Already initialized
1018Not found
1019Cancel requested
1020Already exists
1021Out of range
1022Timeout
1023Invalid result value

Summary values:

NumDescription
0Success
1Nothing happened
2Would block
3Out of resource
4Not found
5Invalid state
6Not supported
7Invalid argument
8Wrong argument
9Canceled
10Status changed
11Internal
63Invalid result value

Module values:

NumDescription
0Common
1Kernel
2Util
3File server
4Loader server
5TCB
6OS
7DBG
8DMNT
9PDN
10GSP
11I2C
12GPIO
13DD
14CODEC
15SPI
16PXI
17FS
18DI
19HID
20CAM
21PI
22PM
23PM_LOW
24FSI
25SRV
26NDM
27NWM
28SOC
29LDR
30ACC
31RomFS
32AM
33HIO
34Updater
35MIC
36FND
37MP
38MPWL
39AC
40HTTP
41DSP
42SND
43DLP
44HIO_LOW
45CSND
46SSL
47AM_LOW
48NEX
49Friends
50RDT
51Applet
52NIM
53PTM
54MIDI
55MC
56SWC
57FatFS
58NGC
59CARD
60CARDNOR
61SDMC
62BOSS
63DBM
64Config
65PS
66CEC
67IR
68UDS
69PL
70CUP
71Gyroscope
72MCU
73NS
74News
75RO
76GD
77Card SPI
78EC
79Web Browser
80Test
81ENC
82PIA
83ACT
84VCTL
85OLV
86NEIA
87NPNS
90AVD
91L2B
92MVD
93NFC
94UART
95SPM
96QTM
97NFP (amiibo)
254Application
255Invalid result value

Level values:

NumDescription
0Success
1Info
25Status
26Temporary
27Permanent
28Usage
29Reinitialize
30Reset
31Fatal