Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 1.71 KB

File metadata and controls

21 lines (20 loc) · 1.71 KB

Authoritative error code map (shared by NS, SS, and Client). Values come from name_server/src/ns_runtime.c and storage_server/include/ss_errors.h.

Code Name Meaning / Typical Use
0 OK Success
1001 BAD_REQUEST Malformed / missing fields
1002 VERSION_UNSUPPORTED Protocol or ticket version mismatch
1101 UNAUTHORIZED Client not logged in / ticket invalid
1102 SESSION_EXPIRED Ticket or login expired
1103 FORBIDDEN Operation not permitted (ACLs, owner-only actions)
1104 ALREADY_LOGGED_IN Duplicate LOGIN on a connection
1204 NOT_FOUND User/file/server not found
1205 NAME_EXISTS Duplicate filename or username
1210 FILE_LOCKED Sentence/file locked by another writer
1211 CONFLICT State conflict (e.g., optimistic write collision)
1301 SS_UNAVAILABLE NS could not reach target storage server
1302 STREAM_INTERRUPTED READ/STREAM aborted mid-flight
1401 EXECUTION_FAILED EXEC command exited non-zero
1500 INTERNAL_ERROR Unexpected failure
1900 NOT_IMPLEMENTED Opcode or feature not implemented