added ability to use separate URLs for different error types