Database errors catch

Hi,
I have a simple application that inserts data into a database table through a form attached to an action server.
The problem is that even when a db error happens the form always returns as a successful operation.

My question is how to capture the db errors in a way that the form doesn’t end successfully to tat I can notify the user.

Thanks for any help.
insert2

Hello,
If such a thing happens:

the response won't be 200 (success), but 500 (internal server error).

What "error" happens exactly on your site which is returned as success?

Hello Teodor,

Yes the 500 error is being returned but the form finishes with a success dynamic event as if everything was ok.

Do you have a way to capture this error so that I can notify the user about the error?

Regards

Can you please provide a link where i can check this?

I will upload this website to server you can access and return to you.