Update documentation for callback function to show how to test for errors in the response data.