hotspot html redirection for expired account

please help in my code. how do i bring out the error like simultenous session reached, invalid password, etc. etc. i cannot see the error when customer logging in.
i only want the uptime limit reached redirected to another page. please help

by clicking LOGIN you agree to our terms and conditions

//-->

Anyone

we are doing this with external page at apache.Also we post errors to external server.But some page under the mk files make it.