Modified 400 error message to return "error" element