My reply from PS support:
Thanks for your email - I'm sorry to hear that you are having trouble connecting to PlayStation Network.
That error code means that your console is having trouble sending data to us over the internet. Most of the time this is fixed by opening up certain ports on your internet router, but don't worry, it's really easy to do!
It’ll be helpful if you can dig out your internet provider's router user guide, as some routers have slightly different ways of changing these settings.
Just look for instructions on how to change port forwarding in your user manual, or contact your internet service provider for advice.
To make sure that you can get online, make sure that you have the following ports opened:
TCP Ports: 80, 443, 465, 993, 3478, 3479, 3480, 5223, 8080 and 10070 - 10080
UDP Ports: 3478, 3479, 3658, and 10070
Additional ports used for other specific functions/features are:
TCP: 9293 (for Remote Play & Remote Start)
TCP: 1935, 2805~2899, 6667 (for viewing or hosting Live Broadcasting)
TCP: 9309 (for Content Manager Assistant)
UDP: 9293 (for Remote Play & Remote Start)
UDP: 9309 (for Content Manager Assistant)
If you're unsure how to open these ports, you can contact your router supplier or a trusted technician for assistance.
Feel free to drop us a line or give us a call to speak to one of our team if you’re still having problems.