PlayStation 4 showing connectivity error all the time

Hello! I just started using Playstation 4 and from day one I have had issues related to connectivity. Whenever I try to connect to PlayStation Network for any update, the connection fails and it says "An error has occurred". I waited for a few days and did not connect to PlayStation Network hoping that next time I try it would connect but still it gives error. What should I do?
