The %1 script returned %2

Error code –10052
Error constant GENERIC_ERROR_HANDLER_RETURN
Parameter 1 The user authentication script name.
Parameter 2 The script returning value.
Probable cause

The user authentication script returned a value greater than 3000.