Error Handling
Error codes and troubleshooting guide for RMS-Socket connections.
Connection Error Codes
Status
Code
Reason
Resolution
Error Response Handling
socket.on("connect_error", (error) => {
console.error("Connection error:", error.message);
const statusCode = error.data?.statusCode;
switch (statusCode) {
case 400:
console.error("Invalid customerid format — use numeric characters only");
break;
case 401:
console.error("Missing customerid header — add it to extraHeaders");
break;
case 402:
console.error("Account inactive or expired — contact LSports support");
break;
case 403:
console.error("Customer not authorized — verify your Customer ID");
break;
case 429:
console.error("Rate limited — wait before retrying");
break;
default:
console.error("Connection failed — will retry:", error.message);
}
});WebSocket Close Codes
Code
Reason
Troubleshooting
Issue
Possible Cause
Solution
Support
Related
Last updated
Was this helpful?