It seems like the Error Code your getting is got to do with your Connection. Trying unplugging the router and wait 5 mins and plug it in. Otherwise it can be ISP may be blocking it and contact them.
Heres what it says on PSN website:
PlayStation error code description: Cannot connect to the Internet or to PlayStation Network, for example signing in, accessing account settings, trying to connect to a game online, accessing or purchasing from PlayStation Store and so on.
This may be caused by scheduled maintenance or issues with your Internet connection.
Solution
Visit eu.playstation.com to find out if PlayStation Network is currently undergoing maintenance. If PlayStation Network is not available, please attempt to connect at a later time.
If there is no PlayStation Network maintenance, go to Network > [Internet Browser] on the XMB™ Menu and attempt to access any website. If you are unable to access a website using the PS3 system's Internet Browser, there may be an issue with your Internet Service Provider. Please contact your Internet Service Provider for help with your Internet connection.
For more tips and hints on using your PlayStation system, visit our technical support forums at community.eu.playstation.com.