catch if resource is not found and display simple error message