policyViolation top-level constant
An endpoint is terminating the connection because it has received a message that violates its policy.
This is a generic status code that can be returned when there is no other more suitable status code (such as unsupportedData or messageTooBig), or if there is a need to hide specific details about the policy.
Implementation
const policyViolation = 1008