You could try connecting the 3DS to the internet a few more times, and if that doesn't work, then I would suggest you to access Nintendo's support site to get more information about this error and hopefully how to fix it. I can give you a link to a page where you can search for the error code you're getting, so that you can see how to fix it. Here's the link:
| Nintendo 3DS - Error Code Lookup
I really hope this helps. Good luck.