Optionaloptions: ErrorOptions & { code?: ErrorCode }A PL/SQL RAISE_APPLICATION_ERROR (ORA-20000 to ORA-20999): its number
and message, without the ORA-20xxx: prefix and the ORA-06512 stack
lines. Its code is CONFLICT (409), and the message is for the client.
The database's or the driver's code: 'ORA-00001', 'NJS-040', 'NJS-123'…
The ORA error number of the failure, if the database reported one.
Whether web-kit shows the message to the client: a PL/SQL application error's.
The statement ran out of time: node-oracledb's callTimeout (NJS-123) or the driver's deadline.
A statement or transaction failed.
context.errorCodeholds the code of the database or the driver:'ORA-00001'(a unique constraint), or node-oracledb's own, such as'NJS-040'(no free connection withinpool.queueTimeout) or'NJS-123'(callTimeoutexceeded). For a database errorcontext.errorNumholds its number (1 for ORA-00001) andcontext.oracleCodeits code. The original error iscause.Its
codetells an HTTP handler (web-kit's response contract) how to answer:TIMEOUT(504) for NJS-123 and a DeadlineError,SERVICE_UNAVAILABLE(503) for NJS-040,CONFLICT(409) for ORA-00001,QUERY_ERROR(500) for the rest. The message stays server-side.