There are different ways to do it. One way would be to include On Error Resume Next toward the top of your code. Then, anywhere you thought an error might occur you could place code along the lines of:
if err.number > 0 then
response.write("An error occurred: " & err.number & " - " & err.description)
end if
If you knew the exact error number you could code it so that your own description displayed instead of err.description.
Nikkol