 <p>From custom password validator you can return FaultCode that describe what's wrong:</p> <pre><code>throw new FaultException("Invalid user name or bad password.", new FaultCode("BadUserNameOrPassword")); throw new FaultException("Password expired.", new FaultCode("PasswordExpired")); throw new FaultException("Internal service error.", new FaultCode("InternalError")); </code></pre>