fixed 400 response core error handling