Error handling when using Pega Connect-REST involves catching response codes from the server and taking the appropriate action in the application.
By default, a GET or PUT request will return a 200 or 204 for success or a 404 for a note found. The other error codes, such as 401 and 500, should be handled in the application code.