#!/bin/sh
# Copyright 2024 (Holloway) Chew, Kean Ho <hello@hollowaykeanho.com>
#
#
# Licensed under (Holloway) Chew, Kean Ho’s Liberal License (the "License").
# You must comply with the license to use the content. Get the License at:
#
#                 https://doi.org/10.5281/zenodo.13770769
#
# You MUST ensure any interaction with the content STRICTLY COMPLIES with
# the permissions and limitations set forth in the license.
HestiaKERNEL_ERROR_OK=0
HestiaKERNEL_ERROR_BAD_EXEC=1
HestiaKERNEL_ERROR_BAD_BUSY=2
HestiaKERNEL_ERROR_BAD_DESCRIPTOR=3
HestiaKERNEL_ERROR_BAD_EXCHANGE=4
HestiaKERNEL_ERROR_BAD_MOUNT=5
HestiaKERNEL_ERROR_BAD_PIPE=6
HestiaKERNEL_ERROR_BAD_REQUEST=7
HestiaKERNEL_ERROR_BAD_STREAM_PIPE=8
HestiaKERNEL_ERROR_PROCESS_IS_DEAD=9
HestiaKERNEL_ERROR_CANCELLED=10
HestiaKERNEL_ERROR_CLEANING_REQUIRED=11
HestiaKERNEL_ERROR_DEADLOCK=12
HestiaKERNEL_ERROR_EXPIRED=13
HestiaKERNEL_ERROR_ILLEGAL_BYTE_SEQUENCE=14
HestiaKERNEL_ERROR_ILLEGAL_SEEK=15
HestiaKERNEL_ERROR_INVALID_ARGUMENT=16
HestiaKERNEL_ERROR_IS_EMPTY=17
HestiaKERNEL_ERROR_MAXED_EXCHANGE=18
HestiaKERNEL_ERROR_MAXED_QUOTA=19
HestiaKERNEL_ERROR_MISSING_LOCK=20
HestiaKERNEL_ERROR_IS_NOT_EMPTY=21
HestiaKERNEL_ERROR_NOT_PERMITTED=22
HestiaKERNEL_ERROR_NOT_POSSIBLE=23
HestiaKERNEL_ERROR_NOT_POSSIBLE_BY_RFKILL=24
HestiaKERNEL_ERROR_NOT_RECOVERABLE=25
HestiaKERNEL_ERROR_OUT_OF_RANGE=26
HestiaKERNEL_ERROR_PERMISSION_DENIED=27
HestiaKERNEL_ERROR_TIMEOUT=28
HestiaKERNEL_ERROR_TOO_MANY_READ=29
HestiaKERNEL_ERROR_TOO_MANY_LOOP=30
HestiaKERNEL_ERROR_TOO_MANY_REFERENCES=31
HestiaKERNEL_ERROR_TOO_MANY_LINK=32
HestiaKERNEL_ERROR_TOO_MANY_OPENED=33
HestiaKERNEL_ERROR_TRY_AGAIN=34
HestiaKERNEL_ERROR_UNSUPPORTED=35
HestiaKERNEL_ERROR_WOULD_BLOCK=36




# lifecycle states
HestiaKERNEL_ERROR_RESTART=37
HestiaKERNEL_ERROR_RESUME=38
HestiaKERNEL_ERROR_SHUTDOWN=39
HestiaKERNEL_ERROR_SLEEP=40
HestiaKERNEL_ERROR_STALLED=41
HestiaKERNEL_ERROR_STANDBY=42
HestiaKERNEL_ERROR_UNRESPONSIVE=43
HestiaKERNEL_ERROR_TERMINATE=44
HestiaKERNEL_ERROR_PROGRESS_SCHEDULED=45
HestiaKERNEL_ERROR_PROGRESS_ALREADY_EXECUTING=46
HestiaKERNEL_ERROR_PROGRESS_EXECUTING=47
HestiaKERNEL_ERROR_PROGRESS_COMPLETED=48
HestiaKERNEL_ERROR_PROGRESS_UNRESPONSIVE=49
HestiaKERNEL_ERROR_PROGRESS_TERMINATE=50




# tri-tier inter-package communications
HestiaKERNEL_ERROR_LV1_NOT_SYNC=51
HestiaKERNEL_ERROR_LV1_PAUSED=52
HestiaKERNEL_ERROR_LV1_RESET=53
HestiaKERNEL_ERROR_LV2_NOT_SYNC=54
HestiaKERNEL_ERROR_LV2_PAUSED=55
HestiaKERNEL_ERROR_LV2_RESET=56
HestiaKERNEL_ERROR_LV3_NOT_SYNC=57
HestiaKERNEL_ERROR_LV3_PAUSED=58
HestiaKERNEL_ERROR_LV3_RESET=59




# data (input/output parameters type etc)
HestiaKERNEL_ERROR_DATA_BAD=60
HestiaKERNEL_ERROR_DATA_EMPTY=61
HestiaKERNEL_ERROR_DATA_INVALID=62
HestiaKERNEL_ERROR_DATA_IS_UNIQUE=63
HestiaKERNEL_ERROR_DATA_IS_NOT_UNIQUE=64
HestiaKERNEL_ERROR_DATA_BUSY=65
HestiaKERNEL_ERROR_DATA_DEAD=66
HestiaKERNEL_ERROR_DATA_EXISTS=67
HestiaKERNEL_ERROR_DATA_FAULTY=68
HestiaKERNEL_ERROR_DATA_MISSING=69
HestiaKERNEL_ERROR_DATA_OVERFLOW=70
HestiaKERNEL_ERROR_DATA_POISONED=71
HestiaKERNEL_ERROR_DATA_REMOVED=72
HestiaKERNEL_ERROR_DATA_TOO_BIG=73
HestiaKERNEL_ERROR_DATA_TOO_MANY_OPENED=74
HestiaKERNEL_ERROR_DATA_TOO_LONG=75
HestiaKERNEL_ERROR_DATA_MISMATCHED=76
HestiaKERNEL_ERROR_DATA_IS_NOT_DIRECTORY=77
HestiaKERNEL_ERROR_DATA_IS_NOT_FILE=78
HestiaKERNEL_ERROR_DATA_IS_NOT_LINK=79
HestiaKERNEL_ERROR_DATA_IS_NOT_SOCKET=80
HestiaKERNEL_ERROR_DATA_REMOTE_CHANGED=81
HestiaKERNEL_ERROR_DATA_REMOTE_ERROR=82
HestiaKERNEL_ERROR_DATA_REMOTE_IO=83
HestiaKERNEL_ERROR_DATA_MISSING_STREAMABLE_RESOURCES=84
HestiaKERNEL_ERROR_DATA_NOT_STREAMABLE=85




# entity (device file directory object etc)
HestiaKERNEL_ERROR_ENTITY_BAD=86
HestiaKERNEL_ERROR_ENTITY_EMPTY=87
HestiaKERNEL_ERROR_ENTITY_INVALID=88
HestiaKERNEL_ERROR_ENTITY_IS_UNIQUE=89
HestiaKERNEL_ERROR_ENTITY_IS_NOT_UNIQUE=90
HestiaKERNEL_ERROR_ENTITY_BUSY=91
HestiaKERNEL_ERROR_ENTITY_DEAD=92
HestiaKERNEL_ERROR_ENTITY_EXISTS=93
HestiaKERNEL_ERROR_ENTITY_FAULTY=94
HestiaKERNEL_ERROR_ENTITY_MISSING=95
HestiaKERNEL_ERROR_ENTITY_MISSING_CHILD=96
HestiaKERNEL_ERROR_ENTITY_OUT_OF_BUFFER=97
HestiaKERNEL_ERROR_ENTITY_POISONED=98
HestiaKERNEL_ERROR_ENTITY_REMOVED=99
HestiaKERNEL_ERROR_ENTITY_TOO_BIG=100
HestiaKERNEL_ERROR_ENTITY_TOO_MANY_OPENED=101
HestiaKERNEL_ERROR_ENTITY_UNATTACHED=102
HestiaKERNEL_ERROR_ENTITY_MISMATCHED=103
HestiaKERNEL_ERROR_ENTITY_IS_NOT_DIRECTORY=104
HestiaKERNEL_ERROR_ENTITY_IS_NOT_FILE=105
HestiaKERNEL_ERROR_ENTITY_IS_NOT_LINK=106
HestiaKERNEL_ERROR_ENTITY_IS_NOT_SOCKET=107
HestiaKERNEL_ERROR_ENTITY_REMOTE_CHANGED=108
HestiaKERNEL_ERROR_ENTITY_REMOTE_ERROR=109
HestiaKERNEL_ERROR_ENTITY_REMOTE_IO=110
HestiaKERNEL_ERROR_ENTITY_MISSING_STREAMABLE_RESOURCES=111
HestiaKERNEL_ERROR_ENTITY_NOT_STREAMABLE=112
HestiaKERNEL_ERROR_ENTITY_STREAMABLE=113
HestiaKERNEL_ERROR_ENTITY_A_TYPEWRITER=114
HestiaKERNEL_ERROR_ENTITY_NOT_A_TYPEWRITER=115
HestiaKERNEL_ERROR_ENTITY_BAD_DESCRIPTOR=116
HestiaKERNEL_ERROR_ENTITY_FILETABLE_OVERFLOW=117




# key (cryptography)
HestiaKERNEL_ERROR_KEY_BAD=118
HestiaKERNEL_ERROR_KEY_DESTROYED=119
HestiaKERNEL_ERROR_KEY_EXPIRED=120
HestiaKERNEL_ERROR_KEY_MISSING=121
HestiaKERNEL_ERROR_KEY_REJECTED=122
HestiaKERNEL_ERROR_KEY_REVOKED=123




# library
HestiaKERNEL_ERROR_LIBRARY_BAD=124
HestiaKERNEL_ERROR_LIBRARY_CORRUPTED=125
HestiaKERNEL_ERROR_LIBRARY_EXEC_FAILED=126
HestiaKERNEL_ERROR_LIBRARY_MAXED=127
HestiaKERNEL_ERROR_LIBRARY_MISSING=128




# network
HestiaKERNEL_ERROR_NETWORK_BAD=129
HestiaKERNEL_ERROR_NETWORK_BAD_AD=130
HestiaKERNEL_ERROR_NETWORK_DOWN=131
HestiaKERNEL_ERROR_NETWORK_NOT_CONNECTED=132
HestiaKERNEL_ERROR_NETWORK_RESET=133
HestiaKERNEL_ERROR_NETWORK_RFS=134
HestiaKERNEL_ERROR_NETWORK_UNREACHABLE=135

HestiaKERNEL_ERROR_NETWORK_HOST_DOWN=136
HestiaKERNEL_ERROR_NETWORK_HOST_UNREACHABLE=137
HestiaKERNEL_ERROR_NETWORK_SOCKET_UNSUPPORTED=138

HestiaKERNEL_ERROR_NETWORK_ADDRESS_IN_USE=139
HestiaKERNEL_ERROR_NETWORK_ADDRESS_UNAVAILABLE=140

HestiaKERNEL_ERROR_NETWORK_CONN_ABORTED=141
HestiaKERNEL_ERROR_NETWORK_CONN_IS_CONNECTED=142
HestiaKERNEL_ERROR_NETWORK_CONN_MISSING_DEST_ADDRESS=143
HestiaKERNEL_ERROR_NETWORK_CONN_MULTIHOP=144
HestiaKERNEL_ERROR_NETWORK_CONN_NOT_CONNECTED=145
HestiaKERNEL_ERROR_NETWORK_CONN_REFUSED=146
HestiaKERNEL_ERROR_NETWORK_CONN_RESET=147

HestiaKERNEL_ERROR_NETWORK_PAYLOAD_BAD=148
HestiaKERNEL_ERROR_NETWORK_PAYLOAD_EMPTY=149
HestiaKERNEL_ERROR_NETWORK_PAYLOAD_MISSING=150
HestiaKERNEL_ERROR_NETWORK_PAYLOAD_TOO_LONG=151




# protocol
HestiaKERNEL_ERROR_PROTOCOL_ADDRESS_UNSUPPORTED=152
HestiaKERNEL_ERROR_PROTOCOL_BAD=153
HestiaKERNEL_ERROR_PROTOCOL_FAMILY_UNSUPPORTED=154
HestiaKERNEL_ERROR_PROTOCOL_MISSING=155
HestiaKERNEL_ERROR_PROTOCOL_INVALID=156
HestiaKERNEL_ERROR_PROTOCOL_FAULTY=157
HestiaKERNEL_ERROR_PROTOCOL_EMPTY=158
HestiaKERNEL_ERROR_PROTOCOL_UNSUPPORTED=159




# system (e.g. os interactable system)
HestiaKERNEL_ERROR_SYSTEM_BAD_IO=160
HestiaKERNEL_ERROR_SYSTEM_DEVICE_CROSS_LINK=161
HestiaKERNEL_ERROR_SYSTEM_INTERRUPT_CALL=162
HestiaKERNEL_ERROR_SYSTEM_INVALID=163
HestiaKERNEL_ERROR_SYSTEM_MISSING_BLOCK_DEVICE=164
HestiaKERNEL_ERROR_SYSTEM_MISSING_DEVICE=165
HestiaKERNEL_ERROR_SYSTEM_MISSING_IO=166
HestiaKERNEL_ERROR_SYSTEM_MISSING_PROCESS=167
HestiaKERNEL_ERROR_SYSTEM_OUT_OF_DOMAIN=168
HestiaKERNEL_ERROR_SYSTEM_OUT_OF_MEMORY=169
HestiaKERNEL_ERROR_SYSTEM_OUT_OF_SPACE=170
HestiaKERNEL_ERROR_SYSTEM_READ_ONLY_FILESYSTEM=171




# user
HestiaKERNEL_ERROR_USER_ACCESS_BANNED=172
HestiaKERNEL_ERROR_USER_ACCESS_LOCKED=173
HestiaKERNEL_ERROR_USER_ACCESS_NOT_VERIFIED=174
HestiaKERNEL_ERROR_USER_ACCESS_BAD=175
HestiaKERNEL_ERROR_USER_ACCESS_REJECTED=176
HestiaKERNEL_ERROR_USER_ACCESS_REVOKED=177
HestiaKERNEL_ERROR_USER_ACCESS_EXISTS=178
HestiaKERNEL_ERROR_USER_ACCESS_EMPTY=179
HestiaKERNEL_ERROR_USER_ACCESS_MISSING=180
HestiaKERNEL_ERROR_USER_ACCESS_INVALID=181
HestiaKERNEL_ERROR_USER_ACCESS_EXPIRED=182
HestiaKERNEL_ERROR_USER_ACCESS_MISMATCHED=183

HestiaKERNEL_ERROR_USER_MFA_BANNED=184
HestiaKERNEL_ERROR_USER_MFA_LOCKED=185
HestiaKERNEL_ERROR_USER_MFA_NOT_VERIFIED=186
HestiaKERNEL_ERROR_USER_MFA_BAD=188
HestiaKERNEL_ERROR_USER_MFA_REJECTED=189
HestiaKERNEL_ERROR_USER_MFA_REVOKED=190
HestiaKERNEL_ERROR_USER_MFA_EXISTS=191
HestiaKERNEL_ERROR_USER_MFA_EMPTY=192
HestiaKERNEL_ERROR_USER_MFA_MISSING=193
HestiaKERNEL_ERROR_USER_MFA_INVALID=194
HestiaKERNEL_ERROR_USER_MFA_EXPIRED=195
HestiaKERNEL_ERROR_USER_MFA_MISMATCHED=196

HestiaKERNEL_ERROR_USER_ID_EXISTS=197
HestiaKERNEL_ERROR_USER_ID_BANNED=198
HestiaKERNEL_ERROR_USER_ID_BAD=199
HestiaKERNEL_ERROR_USER_ID_LOCKED=200
HestiaKERNEL_ERROR_USER_ID_NOT_VERIFIED=201
HestiaKERNEL_ERROR_USER_ID_EMPTY=202
HestiaKERNEL_ERROR_USER_ID_MISSING=203
HestiaKERNEL_ERROR_USER_ID_INVALID=204
HestiaKERNEL_ERROR_USER_ID_EXPIRED=205
HestiaKERNEL_ERROR_USER_ID_MISMATCHED=206
HestiaKERNEL_ERROR_USER_ID_DELETED=207

HestiaKERNEL_ERROR_USER_PASSWORD_EXISTS=208
HestiaKERNEL_ERROR_USER_PASSWORD_BANNED=209
HestiaKERNEL_ERROR_USER_PASSWORD_BAD=210
HestiaKERNEL_ERROR_USER_PASSWORD_REJECTED=211
HestiaKERNEL_ERROR_USER_PASSWORD_REVOKED=212
HestiaKERNEL_ERROR_USER_PASSWORD_EMPTY=213
HestiaKERNEL_ERROR_USER_PASSWORD_MISSING=214
HestiaKERNEL_ERROR_USER_PASSWORD_INVALID=215
HestiaKERNEL_ERROR_USER_PASSWORD_EXPIRED=216
HestiaKERNEL_ERROR_USER_PASSWORD_MISMATCHED=217

HestiaKERNEL_ERROR_USER_KEY_EXISTS=218
HestiaKERNEL_ERROR_USER_KEY_BANNED=219
HestiaKERNEL_ERROR_USER_KEY_BAD=220
HestiaKERNEL_ERROR_USER_KEY_REJECTED=221
HestiaKERNEL_ERROR_USER_KEY_REVOKED=222
HestiaKERNEL_ERROR_USER_KEY_EMPTY=223
HestiaKERNEL_ERROR_USER_KEY_MISSING=224
HestiaKERNEL_ERROR_USER_KEY_INVALID=225
HestiaKERNEL_ERROR_USER_KEY_EXPIRED=226
HestiaKERNEL_ERROR_USER_KEY_MISMATCHED=227
