if error is SRM_INVALID_PATH returns 404