Use $.ajax instead of $.post in order to get detailed error information.