code, a string such as "SYS-0003": a three-letter scope and four digits, and slug, an upper-snake name such as TOO_MANY_REQUESTS. The two always travel together and always mean the same thing. The human-readable text next to them may change wording without notice, so a client branches on code (or slug), never on the text.
Where the pair appears:
The scope says who answers:
SYS codes, listed below, are shared by every product, authentication and the WebSocket gateway included. Each product’s routes own their own scope, PRP for Perpetuals and OPT for Options, documented with the product:
Perpetuals Error Codes
Order creation, modification, cancellation, margin and leverage routes
Options Error Codes
Order creation, modification, cancellation and cancel-all routes