Difference between revisions of "Error codes"

From 3dbrew
Jump to navigation Jump to search
(Fixed bit range for Description field)
 
(19 intermediate revisions by 8 users not shown)
Line 17: Line 17:
 
| 27-31
 
| 27-31
 
| Level
 
| Level
 +
|}
 +
 +
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)
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Num
 +
!  Description
 +
|-
 +
| 100-179
 +
| Not found
 +
|-
 +
| 130-179 (subset of previous)
 +
| Media not found
 +
|-
 +
| 180-199
 +
| Exists already
 +
|-
 +
| 200-219
 +
| Not enough space
 +
|-
 +
| 220-229
 +
| Invalidated archive
 +
|-
 +
| 230-339
 +
| Unacceptable
 +
|-
 +
| 260-279 (subset of previous)
 +
| Write protected
 +
|-
 +
| 360-389
 +
| Bad format
 +
|-
 +
| 390-399
 +
| Verification failure
 +
|-
 +
| 600-629
 +
| Out of resources
 +
|-
 +
| 630-660
 +
| Access denied
 +
|-
 +
| 700-729
 +
| Invalid argument
 +
|-
 +
| 730-749
 +
| Not initialized
 +
|-
 +
| 750-759
 +
| Already initialized
 +
|-
 +
| 760-779
 +
| Not supported
 +
|}
 +
 +
Description values:
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Num
 +
!  Description
 +
|-
 +
| 0
 +
| Success
 +
|-
 +
| 2
 +
| Invalid memory permissions (kernel)
 +
|-
 +
| 4
 +
| Invalid ticket version (AM)
 +
|-
 +
| 5
 +
| Invalid string length. This error is returned when service name length is greater than 8 or zero. (srv)
 +
|-
 +
| 6
 +
| Access denied. This error is returned when you request a service that you don't have access to. (srv)
 +
|-
 +
| 7
 +
| String size does not match string contents. This error is returned when service name contains an unexpected null byte. (srv)
 +
|-
 +
| 8
 +
| Camera already in use/busy (qtm).
 +
|-
 +
| 10
 +
| Not enough memory (os)
 +
|-
 +
| 26
 +
| Session closed by remote (os)
 +
|-
 +
| 32
 +
| Empty CIA? (AM)
 +
|-
 +
| 37
 +
| Invalid NCCH? (AM)
 +
|-
 +
| 39
 +
| Invalid title version (AM)
 +
|-
 +
| 43
 +
| Database doesn't exist/failed to open (AM)
 +
|-
 +
| 44
 +
| Trying to uninstall system-app (AM)
 +
|-
 +
| 47
 +
| Invalid command header (OS)
 +
|-
 +
| 101
 +
| Archive not mounted/mount-point not found (fs)
 +
|-
 +
| 105
 +
| Request timed out (http)
 +
|-
 +
| 106
 +
| Invalid signature/CIA? (AM)
 +
|-
 +
| 120
 +
| Title/object not found? (fs)
 +
|-
 +
| 141
 +
| Gamecard not inserted? (fs)
 +
|-
 +
| 230
 +
| Invalid open-flags / permissions? (fs)
 +
|-
 +
| 271
 +
| Invalid configuration (mvd).
 +
|-
 +
| 391
 +
| NCCH hash-check failed? (fs)
 +
|-
 +
| 392
 +
| RSA/AES-MAC verification failed? (fs)
 +
|-
 +
| 393
 +
| Invalid database? (AM)
 +
|-
 +
| 395
 +
| RomFS/Savedata hash-check failed? (fs)
 +
|-
 +
| 630
 +
| Command not allowed / missing permissions? (fs)
 +
|-
 +
| 702
 +
| Invalid path? (fs)
 +
|-
 +
| 761
 +
| Incorrect read-size for ExeFS? (fs)
 +
|-
 +
| 1000
 +
| Invalid selection
 +
|-
 +
| 1001
 +
| Too large
 +
|-
 +
| 1002
 +
| Not authorized
 +
|-
 +
| 1003
 +
| Already done
 +
|-
 +
| 1004
 +
| Invalid size
 +
|-
 +
| 1005
 +
| Invalid enum value
 +
|-
 +
| 1006
 +
| Invalid combination
 +
|-
 +
| 1007
 +
| No data
 +
|-
 +
| 1008
 +
| Busy
 +
|-
 +
| 1009
 +
| Misaligned address
 +
|-
 +
| 1010
 +
| Misaligned size
 +
|-
 +
| 1011
 +
| Out of memory
 +
|-
 +
| 1012
 +
| Not implemented
 +
|-
 +
| 1013
 +
| Invalid address
 +
|-
 +
| 1014
 +
| Invalid pointer
 +
|-
 +
| 1015
 +
| Invalid handle
 +
|-
 +
| 1016
 +
| Not initialized
 +
|-
 +
| 1017
 +
| Already initialized
 +
|-
 +
| 1018
 +
| Not found
 +
|-
 +
| 1019
 +
| Cancel requested
 +
|-
 +
| 1020
 +
| Already exists
 +
|-
 +
| 1021
 +
| Out of range
 +
|-
 +
| 1022
 +
| Timeout
 +
|-
 +
| 1023
 +
| Invalid result value
 
|}
 
|}
  
Line 102: Line 324:
 
|-
 
|-
 
| 10
 
| 10
| GX
+
| GSP
 
|-
 
|-
 
| 11
 
| 11
Line 309: Line 531:
 
|-
 
|-
 
| 79
 
| 79
| RO
+
| Web Browser
 
|-
 
|-
 
| 80
 
| 80
| Web Browser
+
| Test
 
|-
 
|-
 
| 81
 
| 81
| Test
+
| ENC
 
|-
 
|-
 
| 82
 
| 82
| ENC
+
| PIA
 
|-
 
|-
 
| 83
 
| 83
| PIA
+
| ACT
|-
 
| 254
 
| Application
 
|-
 
| 255
 
| Invalid result value
 
|}
 
 
 
Description values:
 
 
 
{| class="wikitable" border="1"
 
|-
 
!  Num
 
!  Description
 
|-
 
| 0
 
| Success
 
|-
 
| 1000
 
| Invalid section
 
 
|-
 
|-
| 1001
+
| 84
| Too large
+
| VCTL
 
|-
 
|-
| 1002
+
| 85
| Not authorized
+
| OLV
 
|-
 
|-
| 1003
+
| 86
| Already done
+
| NEIA
 
|-
 
|-
| 1004
+
| 87
| Invalid size
+
| NPNS
 
|-
 
|-
| 1005
+
| 90
| Invalid enum value
+
| AVD
 
|-
 
|-
| 1006
+
| 91
| Invalid combination
+
| L2B
 
|-
 
|-
| 1007
+
| 92
| No data
+
| MVD
 
|-
 
|-
| 1008
+
| 93
| Busy
+
| NFC
 
|-
 
|-
| 1009
+
| 94
| Misaligned address
+
| UART
 
|-
 
|-
| 1010
+
| 95
| Misaligned size
+
| SPM
 
|-
 
|-
| 1011
+
| 96
| Out of memory
+
| QTM
 
|-
 
|-
| 1012
+
| 97
| Not implemented
+
| NFP (amiibo)
 
|-
 
|-
| 1013
+
| 254
| Invalid address
+
| Application
 
|-
 
|-
| 1014
+
| 255
| Invalid pointer
 
|-
 
| 1015
 
| Invalid handle
 
|-
 
| 1016
 
| Not initialized
 
|-
 
| 1017
 
| Already initialized
 
|-
 
| 1018
 
| Not found
 
|-
 
| 1019
 
| Cancel requested
 
|-
 
| 1020
 
| Already exists
 
|-
 
| 1021
 
| Out of range
 
|-
 
| 1022
 
| Timeout
 
|-
 
| 1023
 
 
| Invalid result value
 
| Invalid result value
|-
 
| 1029
 
| String too big? This error is returned when service name length is greater than 8. (srv)
 
|-
 
| 1030
 
| Access denied? This error is returned when you request a service that you don't have access to. (srv)
 
|-
 
| 1031
 
| String too small? This error is returned when service name contains an unexpected null byte. (srv)
 
 
|}
 
|}
  

Latest revision as of 22:42, 21 October 2017

All system error codes follow a shared format.

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

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)

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

Description values:

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

Summary values:

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

Module values:

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

Level values:

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