If this error occurs, there may be a problem connecting to the server. Please try the following means and see if the situation improves:
Restart your PlayStation®4 console.
Turn off your router, wait at least five minutes, then restart it.
Try using a wired connection if possible.
Try changing DNS settings. Configure your network settings with the number of a public DNS that is free and open to the public by companies or organisations.