If you use Ajax to submit something to the server, and it comes back with a 500 status code, then that means that an error occurred on the server. So if that's what happened to you, then you have to look on the server to find out what the error was. Or if it's not your server, then you need to contact the people who manage the server and ask them to work with you to find the problem.
Create symphonies in seed and soil. For this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book