I submit a form using ajax, and the validation is done on server side. If validation fails I return a json encoded object with the errors and status code: 500. When on client side jquery gets the response my error handler function is called and it works perfectly, BUT (probably this is a normal behavior) an exception is thrown in Chrome (probably other browser too):
POST http://localhost/workplace/.../clients/create 500 (Internal Server Error)
This makes me and probably my clients feel that my program isn t working correctly, but there is just a validation error. How to handle this situation?