$.ajax({
type: 'POST',
data: currentForm.serialize(),
url: currentForm.attr('action'),
success: (response) => {
console.log(response)
},
error: (response) => {
console.log(response)
const status = response.status
switch (status) {
case 404:
break
case 400:
break
case 200:
break
}
}
})