use return when calling ngx.exit
set the debug flag
Let scs send custom error messages to the client